#151F5C#151F5C

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

Color values

HEX#151F5C
RGBrgb(21, 31, 92)
HSLhsl(232, 63%, 22%)
HSVhsv(232, 77%, 36%)
CMYKcmyk(77.2%, 66.3%, 0%, 63.9%)
CIE-LABlab(15.02, 19.44, -37.79)
CIE-LCHlch(15.02, 42.50, 297.22°)
OKLaboklab(27.5% 0.0006 -0.1091)
OKLCHoklch(27.5% 0.109 270.3)
XYZxyz(2.7304, 1.9118, 10.3483)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F5C #5C5215
analogous
#15435C #151F5C #2E155C
triadic
#151F5C #5C151F #1F5C15
tetradic
#151F5C #5C1543 #5C5215 #155C2E
square
#151F5C #5C1543 #5C5215 #155C2E
split-complementary
#151F5C #5C2E15 #435C15
monochromatic
#060819 #0A0E2A #151F5C #20308E #2C41C0

Accessibility & contrast

On white

15.19
#151F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F5C
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F5C#FFFFFF#000000##FFFFFF
##151F5C1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151f5c;
/* rgb */ color: rgb(21, 31, 92);
/* oklch */ color: oklch(27.5% 0.109 270.3);
Tailwind
colors: {
  custom: {
    50: '#5e5a8b',
    500: '#151f5c',
    950: '#000000',
  },
}
SCSS
$custom: #151f5c;
$custom-light: #5e5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#151f5c",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 231.549,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27503,
    "c": 0.10913,
    "h": 270.3
  },
  "luminance": 0.01912
}

Semantic roles & 50–950 ramp

primary
#151F5C
secondary
#938739
accent
#CF42E6
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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