#151F5B#151F5B

#151F5B is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.108 H 270.3°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#151F5B
RGBrgb(21, 31, 91)
HSLhsl(231, 63%, 22%)
HSVhsv(231, 77%, 36%)
CMYKcmyk(76.9%, 65.9%, 0%, 64.3%)
CIE-LABlab(14.92, 19.02, -37.28)
CIE-LCHlch(14.92, 41.85, 297.04°)
OKLaboklab(27.4% 0.0006 -0.1076)
OKLCHoklch(27.4% 0.108 270.3)
XYZxyz(2.6869, 1.8945, 10.1196)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F5B #5B5115
analogous
#15425B #151F5B #2E155B
triadic
#151F5B #5B151F #1F5B15
tetradic
#151F5B #5B1542 #5B5115 #155B2E
square
#151F5B #5B1542 #5B5115 #155B2E
split-complementary
#151F5B #5B2E15 #425B15
monochromatic
#060819 #0A0E29 #151F5B #20308D #2C41BE

Accessibility & contrast

On white

15.23
#151F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#151F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F5B
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F5B#FFFFFF#000000##FFFFFF
##151F5B1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151f5b;
/* rgb */ color: rgb(21, 31, 91);
/* oklch */ color: oklch(27.4% 0.108 270.3);
Tailwind
colors: {
  custom: {
    50: '#5e5a8a',
    500: '#151f5b',
    950: '#000000',
  },
}
SCSS
$custom: #151f5b;
$custom-light: #5e5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#151f5b",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 231.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27404,
    "c": 0.10762,
    "h": 270.3
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#151F5B
secondary
#928639
accent
#CE42E6
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151F5B

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

Preview Lab → · Contrast checker → · Palette generator →

#151F5B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva