#151B4D#151B4D

#151B4D is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.092 H 272.8°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#151B4D
RGBrgb(21, 27, 77)
HSLhsl(234, 57%, 19%)
HSVhsv(234, 73%, 30%)
CMYKcmyk(72.7%, 64.9%, 0%, 69.8%)
CIE-LABlab(12.47, 16.23, -31.78)
CIE-LCHlch(12.47, 35.68, 297.06°)
OKLaboklab(25.19% 0.0044 -0.0915)
OKLCHoklch(25.19% 0.092 272.8)
XYZxyz(2.0403, 1.4789, 7.1977)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B4D #4D4715
analogous
#15374D #151B4D #2B154D
triadic
#151B4D #4D151B #1B4D15
tetradic
#151B4D #4D1537 #4D4715 #154D2B
square
#151B4D #4D1537 #4D4715 #154D2B
split-complementary
#151B4D #4D2B15 #374D15
monochromatic
#070818 #080A1D #151B4D #222C7D #2F3DAD

Accessibility & contrast

On white

16.21
#151B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#151B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B4D
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B4D#FFFFFF#000000##FFFFFF
##151B4D1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#002731
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151b4d;
/* rgb */ color: rgb(21, 27, 77);
/* oklch */ color: oklch(25.2% 0.092 272.8);
Tailwind
colors: {
  custom: {
    50: '#5b577f',
    500: '#151b4d',
    950: '#000000',
  },
}
SCSS
$custom: #151b4d;
$custom-light: #5b577f;
$custom-dark: #000000;
JSON
{
  "hex": "#151b4d",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 77
  },
  "hsl": {
    "h": 233.571,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25185,
    "c": 0.09162,
    "h": 272.8
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#151B4D
secondary
#857D39
accent
#D047E0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #151B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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