Skip to content

CSS named color

SteelBlue #4682B4

SteelBlue (CSS keyword steelblue) has the hex code #4682B4 and the RGB value rgb(70, 130, 180): a medium, moderately saturated sky blue.

SteelBlue#4682B4

A medium, grayish blue (#4682b4) that evokes tempered steel. A dependable, corporate blue that passes WCAG AA for large text on white.

Color codes for SteelBlue

Color codes for SteelBlue
CSS keywordsteelblue
HEX#4682B4
RGBrgb(70, 130, 180)
HSLhsl(207, 44%, 49%)
HWBhwb(207 27% 29%)
OKLCHoklch(58.8% 0.099 245.7)
CMYK (naive, no ICC profile)cmyk(61%, 28%, 0%, 29%)
Decimal4,620,980
Hue familyBlues

Contrast and accessibility

On steelblue, black text has a contrast ratio of 5.11:1 and passes AA for normal text; white text reaches 4.10:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on steelblue5.11:1PassPassFailPass36.1
White text on steelblue4.10:1FailPassFailFail−73.5
Steelblue text on white4.10:1FailPassFailFail68.0
Steelblue text on black5.11:1PassPassFailPass−33.6

Tints and shades

Each step mixes steelblue with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, steelblue, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #4f88b8
  2. 15%
    #6295bf
  3. 25%
    #74a1c7
  4. 35%
    #87aece
  5. 45%
    #99bad6
  6. 55%
    #acc7dd
  7. 65%
    #bed3e5
  8. 75%
    #d1e0ec
  9. 85%
    #e3ecf4
  10. 95%
    #f6f9fb

Shades (mixed with black)

  1. 5%
    #437cab
  2. 15%
    #3c6f99
  3. 25%
    #356287
  4. 35%
    #2e5575
  5. 45%
    #274863
  6. 55%
    #1f3a51
  7. 65%
    #192e3f
  8. 75%
    #12212d
  9. 85%
    #0b141b
  10. 95%
    #040709

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, steelblue's complementary color is #A57037 (close to sienna), its analogous colors are #188BA2 and #6C77B7, and its triadic partners are #AE6274 and #6E8742. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#a57037
Analogous−30°, +30°#188ba2#6c77b7
Triadic+120°, +240°#ae6274#6e8742
Split-complementary+150°, +210°#af6653#8f7c2e

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

SteelBlue is a cool color: its hue is 207° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
slategray#7080906.9
lightslategray#7788997.4
darkcyan#008b8b8.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
cyan-600#0092b85.8
sky-600#0084d15.9
slate-500#62748e6.5

Code snippets

CSS
.element {
  color: steelblue;
  background-color: #4682b4;
  border-color: rgb(70 130 180);
  outline-color: oklch(58.8% 0.099 245.7);
}
Tailwind CSS
<div class="bg-[#4682b4] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-steelblue: #4682b4;
}
/* then use bg-steelblue, text-steelblue, border-steelblue */
SwiftUI
import SwiftUI

extension Color {
  static let steelblue = Color(red: 0.275, green: 0.510, blue: 0.706)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Steelblue = Color(0xFF4682B4)
Flutter
import 'package:flutter/material.dart';

const steelblue = Color(0xFF4682B4);
Android XML
<!-- res/values/colors.xml -->
<color name="steelblue">#4682B4</color>

Frequently asked questions

What is the hex code for steelblue?
The hex code for steelblue is #4682B4. The same color is rgb(70, 130, 180), hsl(207, 44%, 49%) and oklch(58.8% 0.099 245.7), and in CSS you can also write the keyword steelblue directly.
Is steelblue a warm or cool color?
SteelBlue is a cool color: its hue is 207° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
What colors go with steelblue?
Rotating the hue in OKLCH while keeping lightness and chroma, steelblue's complementary color is #A57037 (close to sienna), its analogous colors are #188BA2 and #6C77B7, and its triadic partners are #AE6274 and #6E8742. For text on top, black gives the higher contrast.
Can you use white text on steelblue?
White text on steelblue has a contrast ratio of 4.10:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 5.11:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −73.5 for white and Lc 36.1 for black.
What is the RGB value of steelblue?
SteelBlue is rgb(70, 130, 180): red 70, green 130 and blue 180 on the 0 to 255 scale, or 27.5%, 51.0% and 70.6%. As a decimal integer it is 4620980.

Last reviewed by Arielton Oberek.