#151B52#151B52

#151B52 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.099 H 272.5°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#151B52
RGBrgb(21, 27, 82)
HSLhsl(234, 59%, 20%)
HSVhsv(234, 74%, 32%)
CMYKcmyk(74.4%, 67.1%, 0%, 67.8%)
CIE-LABlab(12.94, 18.28, -34.44)
CIE-LCHlch(12.94, 38.99, 297.95°)
OKLaboklab(25.67% 0.0043 -0.0993)
OKLCHoklch(25.67% 0.099 272.5)
XYZxyz(2.2237, 1.5523, 8.1634)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B52 #524C15
analogous
#153A52 #151B52 #2D1552
triadic
#151B52 #52151B #1B5215
tetradic
#151B52 #52153A #524C15 #15522D
square
#151B52 #52153A #524C15 #15522D
split-complementary
#151B52 #522D15 #3A5215
monochromatic
#060818 #090B21 #151B52 #212B83 #2E3BB3

Accessibility & contrast

On white

16.03
#151B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#151B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B52
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B52#FFFFFF#000000##FFFFFF
##151B521.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151b52;
/* rgb */ color: rgb(21, 27, 82);
/* oklch */ color: oklch(25.7% 0.099 272.5);
Tailwind
colors: {
  custom: {
    50: '#5c5783',
    500: '#151b52',
    950: '#000000',
  },
}
SCSS
$custom: #151b52;
$custom-light: #5c5783;
$custom-dark: #000000;
JSON
{
  "hex": "#151b52",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 234.098,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25672,
    "c": 0.09943,
    "h": 272.5
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#151B52
secondary
#8A8239
accent
#D345E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151B52

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

Preview Lab → · Contrast checker → · Palette generator →

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