#154D9E#154D9E

#154D9E is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.4% C 0.144 H 258.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#154D9E
RGBrgb(21, 77, 158)
HSLhsl(215, 77%, 35%)
HSVhsv(215, 87%, 62%)
CMYKcmyk(86.7%, 51.3%, 0%, 38%)
CIE-LABlab(33.85, 14.15, -48.93)
CIE-LCHlch(33.85, 50.94, 286.13°)
OKLaboklab(43.42% -0.0283 -0.141)
OKLCHoklch(43.42% 0.144 258.6)
XYZxyz(9.1324, 7.9347, 33.3913)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#154D9E #9E6615
analogous
#15929E #154D9E #21159E
triadic
#154D9E #9E154D #4D9E15
tetradic
#154D9E #9E1592 #9E6615 #159E21
square
#154D9E #9E1592 #9E6615 #159E21
split-complementary
#154D9E #9E2115 #929E15
monochromatic
#071832 #0E3368 #154D9E #1C67D4 #4788E7

Accessibility & contrast

On white

8.12
#154D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#154D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #154D9E
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##154D9E#FFFFFF#000000##FFFFFF
##154D9E1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1856A1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #154d9e;
/* rgb */ color: rgb(21, 77, 158);
/* oklch */ color: oklch(43.4% 0.144 258.6);
Tailwind
colors: {
  custom: {
    50: '#6d7ebb',
    500: '#154d9e',
    950: '#000000',
  },
}
SCSS
$custom: #154d9e;
$custom-light: #6d7ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#154d9e",
  "rgb": {
    "r": 21,
    "g": 77,
    "b": 158
  },
  "hsl": {
    "h": 215.474,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43419,
    "c": 0.14381,
    "h": 258.6
  },
  "luminance": 0.07936
}

Semantic roles & 50–950 ramp

primary
#154D9E
secondary
#C79347
accent
#A535F3
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080912
muted
#7B7B81

Preview Lab

Preview with #154D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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