#151F51#151F51

#151F51 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.092 H 270.3°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#151F51
RGBrgb(21, 31, 81)
HSLhsl(230, 59%, 20%)
HSVhsv(230, 74%, 32%)
CMYKcmyk(74.1%, 61.7%, 0%, 68.2%)
CIE-LABlab(14.02, 14.89, -32.00)
CIE-LCHlch(14.02, 35.29, 294.95°)
OKLaboklab(26.45% 0.0005 -0.0921)
OKLCHoklch(26.45% 0.092 270.3)
XYZxyz(2.2839, 1.7333, 7.9972)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F51 #514715
analogous
#153D51 #151F51 #291551
triadic
#151F51 #51151F #1F5115
tetradic
#151F51 #51153D #514715 #155129
square
#151F51 #51153D #514715 #155129
split-complementary
#151F51 #512915 #3D5115
monochromatic
#060918 #080C20 #151F51 #223282 #2E44B2

Accessibility & contrast

On white

15.59
#151F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#151F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F51
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F51#FFFFFF#000000##FFFFFF
##151F511.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151f51;
/* rgb */ color: rgb(21, 31, 81);
/* oklch */ color: oklch(26.4% 0.092 270.3);
Tailwind
colors: {
  custom: {
    50: '#5b5a82',
    500: '#151f51',
    950: '#000000',
  },
}
SCSS
$custom: #151f51;
$custom-light: #5b5a82;
$custom-dark: #000000;
JSON
{
  "hex": "#151f51",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 81
  },
  "hsl": {
    "h": 230,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.26449,
    "c": 0.09211,
    "h": 270.3
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#151F51
secondary
#897C39
accent
#C846E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #151F51

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

Preview Lab → · Contrast checker → · Palette generator →

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