#151E40#151E40

#151E40 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.7% C 0.066 H 269.9°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#151E40
RGBrgb(21, 30, 64)
HSLhsl(227, 51%, 17%)
HSVhsv(227, 67%, 25%)
CMYKcmyk(67.2%, 53.1%, 0%, 74.9%)
CIE-LABlab(12.34, 8.57, -22.96)
CIE-LCHlch(12.34, 24.51, 290.48°)
OKLaboklab(24.74% -0.0001 -0.0655)
OKLCHoklch(24.74% 0.066 269.9)
XYZxyz(1.6986, 1.4580, 5.0414)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E40 #403715
analogous
#153440 #151E40 #221540
triadic
#151E40 #40151E #1E4015
tetradic
#151E40 #401534 #403715 #154022
square
#151E40 #401534 #403715 #154022
split-complementary
#151E40 #402215 #344015
monochromatic
#080B17 #080B17 #151E40 #24346E #33499C

Accessibility & contrast

On white

16.26
#151E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#151E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E40
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E40#FFFFFF#000000##FFFFFF
##151E401.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2241
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#00262B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151e40;
/* rgb */ color: rgb(21, 30, 64);
/* oklch */ color: oklch(24.7% 0.066 269.9);
Tailwind
colors: {
  custom: {
    50: '#575975',
    500: '#151e40',
    950: '#000000',
  },
}
SCSS
$custom: #151e40;
$custom-light: #575975;
$custom-dark: #000000;
JSON
{
  "hex": "#151e40",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 64
  },
  "hsl": {
    "h": 227.442,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24744,
    "c": 0.06553,
    "h": 269.9
  },
  "luminance": 0.01458
}

Semantic roles & 50–950 ramp

primary
#151E40
secondary
#786B39
accent
#BD4EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151E40

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

Preview Lab → · Contrast checker → · Palette generator →

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