#154A8A#154A8A

#154A8A is a dark, moderate cyan. Relative luminance 0.069; OKLCH L 41.2% C 0.120 H 255.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#154A8A
RGBrgb(21, 74, 138)
HSLhsl(213, 74%, 31%)
HSVhsv(213, 85%, 54%)
CMYKcmyk(84.8%, 46.4%, 0%, 45.9%)
CIE-LABlab(31.56, 7.97, -40.44)
CIE-LCHlch(31.56, 41.22, 281.15°)
OKLaboklab(41.21% -0.0295 -0.1161)
OKLCHoklch(41.21% 0.12 255.7)
XYZxyz(7.3438, 6.8911, 24.9829)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154A8A #8A5515
analogous
#15848A #154A8A #1B158A
triadic
#154A8A #8A154A #4A8A15
tetradic
#154A8A #8A1584 #8A5515 #158A1B
square
#154A8A #8A1584 #8A5515 #158A1B
split-complementary
#154A8A #8A1B15 #848A15
monochromatic
#051120 #0D2E55 #154A8A #1D66BF #3985E1

Accessibility & contrast

On white

8.83
#154A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#154A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154A8A
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154A8A#FFFFFF#000000##FFFFFF
##154A8A1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508C
Deuteranopia (green-blind)
#0C4589
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #154a8a;
/* rgb */ color: rgb(21, 74, 138);
/* oklch */ color: oklch(41.2% 0.120 255.7);
Tailwind
colors: {
  custom: {
    50: '#687bac',
    500: '#154a8a',
    950: '#000000',
  },
}
SCSS
$custom: #154a8a;
$custom-light: #687bac;
$custom-dark: #000000;
JSON
{
  "hex": "#154a8a",
  "rgb": {
    "r": 21,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 212.821,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41212,
    "c": 0.11978,
    "h": 255.7
  },
  "luminance": 0.06892
}

Semantic roles & 50–950 ramp

primary
#154A8A
secondary
#BE833D
accent
#9D38F0
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #154A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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