#151F5F#151F5F

#151F5F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.114 H 270.2°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#151F5F
RGBrgb(21, 31, 95)
HSLhsl(232, 64%, 23%)
HSVhsv(232, 78%, 37%)
CMYKcmyk(77.9%, 67.4%, 0%, 62.7%)
CIE-LABlab(15.30, 20.66, -39.32)
CIE-LCHlch(15.30, 44.42, 297.72°)
OKLaboklab(27.8% 0.0005 -0.1136)
OKLCHoklch(27.8% 0.114 270.2)
XYZxyz(2.8641, 1.9653, 11.0527)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F5F #5F5515
analogous
#15445F #151F5F #30155F
triadic
#151F5F #5F151F #1F5F15
tetradic
#151F5F #5F1544 #5F5515 #155F30
square
#151F5F #5F1544 #5F5515 #155F30
split-complementary
#151F5F #5F3015 #445F15
monochromatic
#060819 #0A0F2D #151F5F #202F91 #2B40C3

Accessibility & contrast

On white

15.07
#151F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#151F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F5F
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F5F#FFFFFF#000000##FFFFFF
##151F5F1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151f5f;
/* rgb */ color: rgb(21, 31, 95);
/* oklch */ color: oklch(27.8% 0.114 270.2);
Tailwind
colors: {
  custom: {
    50: '#5f5a8d',
    500: '#151f5f',
    950: '#000000',
  },
}
SCSS
$custom: #151f5f;
$custom-light: #5f5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#151f5f",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 231.892,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27803,
    "c": 0.11362,
    "h": 270.2
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#151F5F
secondary
#968A3A
accent
#D041E7
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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