#151C42#151C42

#151C42 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.4% C 0.072 H 272.2°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#151C42
RGBrgb(21, 28, 66)
HSLhsl(231, 52%, 17%)
HSVhsv(231, 68%, 26%)
CMYKcmyk(68.2%, 57.6%, 0%, 74.1%)
CIE-LABlab(11.84, 10.93, -25.15)
CIE-LCHlch(11.84, 27.43, 293.49°)
OKLaboklab(24.42% 0.0027 -0.072)
OKLCHoklch(24.42% 0.072 272.2)
XYZxyz(1.7076, 1.3831, 5.3302)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C42 #423B15
analogous
#153342 #151C42 #251542
triadic
#151C42 #42151C #1C4215
tetradic
#151C42 #421533 #423B15 #154225
square
#151C42 #421533 #423B15 #154225
split-complementary
#151C42 #422515 #334215
monochromatic
#070A17 #070A17 #151C42 #243070 #33439F

Accessibility & contrast

On white

16.45
#151C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#151C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C42
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C42#FFFFFF#000000##FFFFFF
##151C421.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072143
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#00252B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #151c42;
/* rgb */ color: rgb(21, 28, 66);
/* oklch */ color: oklch(24.4% 0.072 272.2);
Tailwind
colors: {
  custom: {
    50: '#585777',
    500: '#151c42',
    950: '#000000',
  },
}
SCSS
$custom: #151c42;
$custom-light: #585777;
$custom-dark: #000000;
JSON
{
  "hex": "#151c42",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 66
  },
  "hsl": {
    "h": 230.667,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24418,
    "c": 0.07207,
    "h": 272.2
  },
  "luminance": 0.01383
}

Semantic roles & 50–950 ramp

primary
#151C42
secondary
#7A7039
accent
#C54DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151C42

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

Preview Lab → · Contrast checker → · Palette generator →

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