#151E42#151E42

#151E42 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.9% C 0.069 H 270.2°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#151E42
RGBrgb(21, 30, 66)
HSLhsl(228, 52%, 17%)
HSVhsv(228, 68%, 26%)
CMYKcmyk(68.2%, 54.5%, 0%, 74.1%)
CIE-LABlab(12.49, 9.40, -24.12)
CIE-LCHlch(12.49, 25.89, 291.30°)
OKLaboklab(24.91% 0.0002 -0.0689)
OKLCHoklch(24.91% 0.069 270.2)
XYZxyz(1.7566, 1.4812, 5.3465)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E42 #423915
analogous
#153542 #151E42 #231542
triadic
#151E42 #42151E #1E4215
tetradic
#151E42 #421535 #423915 #154223
square
#151E42 #421535 #423915 #154223
split-complementary
#151E42 #422315 #354215
monochromatic
#070B17 #070B17 #151E42 #243370 #33489F

Accessibility & contrast

On white

16.20
#151E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151E42
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E42#FFFFFF#000000##FFFFFF
##151E421.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2343
Deuteranopia (green-blind)
#051F41
Tritanopia (blue-blind)
#00262C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151e42;
/* rgb */ color: rgb(21, 30, 66);
/* oklch */ color: oklch(24.9% 0.069 270.2);
Tailwind
colors: {
  custom: {
    50: '#585976',
    500: '#151e42',
    950: '#000000',
  },
}
SCSS
$custom: #151e42;
$custom-light: #585976;
$custom-dark: #000000;
JSON
{
  "hex": "#151e42",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 66
  },
  "hsl": {
    "h": 228,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24906,
    "c": 0.06895,
    "h": 270.2
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#151E42
secondary
#7A6D39
accent
#BF4DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151E42

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

Preview Lab → · Contrast checker → · Palette generator →

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