#151B3F#151B3F

#151B3F is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.9% C 0.069 H 273.0°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#151B3F
RGBrgb(21, 27, 63)
HSLhsl(231, 50%, 16%)
HSVhsv(231, 67%, 25%)
CMYKcmyk(66.7%, 57.1%, 0%, 75.3%)
CIE-LABlab(11.29, 10.46, -23.94)
CIE-LCHlch(11.29, 26.12, 293.61°)
OKLaboklab(23.92% 0.0036 -0.0684)
OKLCHoklch(23.92% 0.069 273)
XYZxyz(1.5981, 1.3021, 4.8688)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B3F #3F3915
analogous
#15303F #151B3F #24153F
triadic
#151B3F #3F151B #1B3F15
tetradic
#151B3F #3F1530 #3F3915 #153F24
square
#151B3F #3F1530 #3F3915 #153F24
split-complementary
#151B3F #3F2415 #303F15
monochromatic
#080A17 #080A17 #151B3F #242F6D #34429B

Accessibility & contrast

On white

16.66
#151B3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#151B3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B3F
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B3F#FFFFFF#000000##FFFFFF
##151B3F1.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082040
Deuteranopia (green-blind)
#031C3E
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #151b3f;
/* rgb */ color: rgb(21, 27, 63);
/* oklch */ color: oklch(23.9% 0.069 273.0);
Tailwind
colors: {
  custom: {
    50: '#575774',
    500: '#151b3f',
    950: '#000000',
  },
}
SCSS
$custom: #151b3f;
$custom-light: #575774;
$custom-dark: #000000;
JSON
{
  "hex": "#151b3f",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 63
  },
  "hsl": {
    "h": 231.429,
    "s": 50,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23923,
    "c": 0.06855,
    "h": 273
  },
  "luminance": 0.01302
}

Semantic roles & 50–950 ramp

primary
#151B3F
secondary
#776E39
accent
#C64EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151B3F

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

Preview Lab → · Contrast checker → · Palette generator →

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