#151F71#151F71

#151F71 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.139 H 269.6°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#151F71
RGBrgb(21, 31, 113)
HSLhsl(233, 69%, 26%)
HSVhsv(233, 81%, 44%)
CMYKcmyk(81.4%, 72.6%, 0%, 55.7%)
CIE-LABlab(17.14, 27.82, -48.12)
CIE-LCHlch(17.14, 55.58, 300.03°)
OKLaboklab(29.7% -0.001 -0.1393)
OKLCHoklch(29.7% 0.139 269.6)
XYZxyz(3.7789, 2.3312, 15.8704)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F71 #716715
analogous
#154D71 #151F71 #391571
triadic
#151F71 #71151F #1F7115
tetradic
#151F71 #71154D #716715 #157139
square
#151F71 #71154D #716715 #157139
split-complementary
#151F71 #713915 #4D7115
monochromatic
#05071A #0B113D #151F71 #1F2DA5 #293CD7

Accessibility & contrast

On white

14.32
#151F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#151F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F71
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F71#FFFFFF#000000##FFFFFF
##151F711.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #151f71;
/* rgb */ color: rgb(21, 31, 113);
/* oklch */ color: oklch(29.7% 0.139 269.6);
Tailwind
colors: {
  custom: {
    50: '#645b9b',
    500: '#151f71',
    950: '#000000',
  },
}
SCSS
$custom: #151f71;
$custom-light: #645b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#151f71",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 233.478,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29699,
    "c": 0.13934,
    "h": 269.6
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#151F71
secondary
#A79B3B
accent
#D83CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #151F71

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

Preview Lab → · Contrast checker → · Palette generator →

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