#151F52#151F52

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

Color values

HEX#151F52
RGBrgb(21, 31, 82)
HSLhsl(230, 59%, 20%)
HSVhsv(230, 74%, 32%)
CMYKcmyk(74.4%, 62.2%, 0%, 67.8%)
CIE-LABlab(14.11, 15.30, -32.54)
CIE-LCHlch(14.11, 35.96, 295.19°)
OKLaboklab(26.54% 0.0006 -0.0937)
OKLCHoklch(26.54% 0.094 270.3)
XYZxyz(2.3217, 1.7484, 8.1961)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F52 #524815
analogous
#153D52 #151F52 #291552
triadic
#151F52 #52151F #1F5215
tetradic
#151F52 #52153D #524815 #155229
square
#151F52 #52153D #524815 #155229
split-complementary
#151F52 #522915 #3D5215
monochromatic
#060918 #090D21 #151F52 #213183 #2E44B3

Accessibility & contrast

On white

15.56
#151F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F52
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F52#FFFFFF#000000##FFFFFF
##151F521.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151f52;
/* rgb */ color: rgb(21, 31, 82);
/* oklch */ color: oklch(26.5% 0.094 270.3);
Tailwind
colors: {
  custom: {
    50: '#5b5a83',
    500: '#151f52',
    950: '#000000',
  },
}
SCSS
$custom: #151f52;
$custom-light: #5b5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#151f52",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 230.164,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26542,
    "c": 0.09369,
    "h": 270.3
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#151F52
secondary
#8A7D39
accent
#C945E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151F52

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

Preview Lab → · Contrast checker → · Palette generator →

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