#151F42#151F42

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

Color values

HEX#151F42
RGBrgb(21, 31, 66)
HSLhsl(227, 52%, 17%)
HSVhsv(227, 68%, 26%)
CMYKcmyk(68.2%, 53%, 0%, 74.1%)
CIE-LABlab(12.81, 8.64, -23.60)
CIE-LCHlch(12.81, 25.13, 290.11°)
OKLaboklab(25.15% -0.001 -0.0674)
OKLCHoklch(25.15% 0.067 269.1)
XYZxyz(1.7823, 1.5326, 5.3551)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F42 #423815
analogous
#153642 #151F42 #221542
triadic
#151F42 #42151F #1F4215
tetradic
#151F42 #421536 #423815 #154222
square
#151F42 #421536 #423815 #154222
split-complementary
#151F42 #422215 #364215
monochromatic
#070B17 #070B17 #151F42 #243570 #334B9F

Accessibility & contrast

On white

16.07
#151F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F42
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F42#FFFFFF#000000##FFFFFF
##151F421.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2343
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#00272D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151f42;
/* rgb */ color: rgb(21, 31, 66);
/* oklch */ color: oklch(25.2% 0.067 269.1);
Tailwind
colors: {
  custom: {
    50: '#575a76',
    500: '#151f42',
    950: '#000000',
  },
}
SCSS
$custom: #151f42;
$custom-light: #575a76;
$custom-dark: #000000;
JSON
{
  "hex": "#151f42",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 66
  },
  "hsl": {
    "h": 226.667,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25154,
    "c": 0.0674,
    "h": 269.1
  },
  "luminance": 0.01533
}

Semantic roles & 50–950 ramp

primary
#151F42
secondary
#7A6B39
accent
#BB4DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151F42

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

Preview Lab → · Contrast checker → · Palette generator →

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