#151F47#151F47

#151F47 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.076 H 269.8°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#151F47
RGBrgb(21, 31, 71)
HSLhsl(228, 54%, 18%)
HSVhsv(228, 70%, 28%)
CMYKcmyk(70.4%, 56.3%, 0%, 72.2%)
CIE-LABlab(13.19, 10.72, -26.47)
CIE-LCHlch(13.19, 28.55, 292.04°)
OKLaboklab(25.57% -0.0003 -0.0758)
OKLCHoklch(25.57% 0.076 269.8)
XYZxyz(1.9362, 1.5942, 6.1657)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F47 #473D15
analogous
#153847 #151F47 #241547
triadic
#151F47 #47151F #1F4715
tetradic
#151F47 #471538 #473D15 #154724
square
#151F47 #471538 #473D15 #154724
split-complementary
#151F47 #472415 #384715
monochromatic
#070A18 #070A18 #151F47 #233476 #3148A5

Accessibility & contrast

On white

15.92
#151F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#151F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F47
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F47#FFFFFF#000000##FFFFFF
##151F471.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092448
Deuteranopia (green-blind)
#012046
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151f47;
/* rgb */ color: rgb(21, 31, 71);
/* oklch */ color: oklch(25.6% 0.076 269.8);
Tailwind
colors: {
  custom: {
    50: '#595a7a',
    500: '#151f47',
    950: '#000000',
  },
}
SCSS
$custom: #151f47;
$custom-light: #595a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#151f47",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 71
  },
  "hsl": {
    "h": 228,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25565,
    "c": 0.07583,
    "h": 269.8
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#151F47
secondary
#7F7139
accent
#C04ADE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151F47

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

Preview Lab → · Contrast checker → · Palette generator →

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