#151B51#151B51

#151B51 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.6% C 0.098 H 272.5°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#151B51
RGBrgb(21, 27, 81)
HSLhsl(234, 59%, 20%)
HSVhsv(234, 74%, 32%)
CMYKcmyk(74.1%, 66.7%, 0%, 68.2%)
CIE-LABlab(12.84, 17.87, -33.91)
CIE-LCHlch(12.84, 38.33, 297.78°)
OKLaboklab(25.57% 0.0043 -0.0978)
OKLCHoklch(25.57% 0.098 272.5)
XYZxyz(2.1859, 1.5372, 7.9645)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B51 #514B15
analogous
#153951 #151B51 #2D1551
triadic
#151B51 #51151B #1B5115
tetradic
#151B51 #511539 #514B15 #15512D
square
#151B51 #511539 #514B15 #15512D
split-complementary
#151B51 #512D15 #395115
monochromatic
#060818 #080B20 #151B51 #222B82 #2E3BB2

Accessibility & contrast

On white

16.06
#151B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B51
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B51#FFFFFF#000000##FFFFFF
##151B511.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151b51;
/* rgb */ color: rgb(21, 27, 81);
/* oklch */ color: oklch(25.6% 0.098 272.5);
Tailwind
colors: {
  custom: {
    50: '#5c5782',
    500: '#151b51',
    950: '#000000',
  },
}
SCSS
$custom: #151b51;
$custom-light: #5c5782;
$custom-dark: #000000;
JSON
{
  "hex": "#151b51",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 81
  },
  "hsl": {
    "h": 234,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.25574,
    "c": 0.09789,
    "h": 272.5
  },
  "luminance": 0.01537
}

Semantic roles & 50–950 ramp

primary
#151B51
secondary
#898139
accent
#D246E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #151B51

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

Preview Lab → · Contrast checker → · Palette generator →

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