#154D8E#154D8E

#154D8E is a dark, vivid cyan. Relative luminance 0.074; OKLCH L 42.2% C 0.122 H 255.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#154D8E
RGBrgb(21, 77, 142)
HSLhsl(212, 74%, 32%)
HSVhsv(212, 85%, 56%)
CMYKcmyk(85.2%, 45.8%, 0%, 44.3%)
CIE-LABlab(32.74, 7.59, -40.99)
CIE-LCHlch(32.74, 41.69, 280.49°)
OKLaboklab(42.22% -0.0311 -0.1176)
OKLCHoklch(42.22% 0.122 255.2)
XYZxyz(7.8438, 7.4192, 26.6046)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154D8E #8E5615
analogous
#158A8E #154D8E #19158E
triadic
#154D8E #8E154D #4D8E15
tetradic
#154D8E #8E158A #8E5615 #158E19
square
#154D8E #8E158A #8E5615 #158E19
split-complementary
#154D8E #8E1915 #8A8E15
monochromatic
#051323 #0D3059 #154D8E #1D6AC3 #3B89E2

Accessibility & contrast

On white

8.45
#154D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#154D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154D8E
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154D8E#FFFFFF#000000##FFFFFF
##154D8E1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5390
Deuteranopia (green-blind)
#0F488D
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #154d8e;
/* rgb */ color: rgb(21, 77, 142);
/* oklch */ color: oklch(42.2% 0.122 255.2);
Tailwind
colors: {
  custom: {
    50: '#697eaf',
    500: '#154d8e',
    950: '#000000',
  },
}
SCSS
$custom: #154d8e;
$custom-light: #697eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#154d8e",
  "rgb": {
    "r": 21,
    "g": 77,
    "b": 142
  },
  "hsl": {
    "h": 212.231,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42215,
    "c": 0.12169,
    "h": 255.2
  },
  "luminance": 0.0742
}

Semantic roles & 50–950 ramp

primary
#154D8E
secondary
#C2843D
accent
#9B37F1
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #154D8E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#154D8E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva