#151F40#151F40

#151F40 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 25.0% C 0.064 H 268.8°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#151F40
RGBrgb(21, 31, 64)
HSLhsl(226, 51%, 17%)
HSVhsv(226, 67%, 25%)
CMYKcmyk(67.2%, 51.6%, 0%, 74.9%)
CIE-LABlab(12.67, 7.81, -22.43)
CIE-LCHlch(12.67, 23.75, 289.20°)
OKLaboklab(25% -0.0014 -0.064)
OKLCHoklch(25% 0.064 268.8)
XYZxyz(1.7243, 1.5094, 5.0500)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F40 #403615
analogous
#153540 #151F40 #211540
triadic
#151F40 #40151F #1F4015
tetradic
#151F40 #401535 #403615 #154021
square
#151F40 #401535 #403615 #154021
split-complementary
#151F40 #402115 #354015
monochromatic
#080B17 #080B17 #151F40 #24356E #334C9C

Accessibility & contrast

On white

16.13
#151F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F40
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F40#FFFFFF#000000##FFFFFF
##151F401.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#00262C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151f40;
/* rgb */ color: rgb(21, 31, 64);
/* oklch */ color: oklch(25.0% 0.064 268.8);
Tailwind
colors: {
  custom: {
    50: '#575a75',
    500: '#151f40',
    950: '#000000',
  },
}
SCSS
$custom: #151f40;
$custom-light: #575a75;
$custom-dark: #000000;
JSON
{
  "hex": "#151f40",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 226.047,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24995,
    "c": 0.06397,
    "h": 268.8
  },
  "luminance": 0.0151
}

Semantic roles & 50–950 ramp

primary
#151F40
secondary
#786939
accent
#B94EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151F40

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

Preview Lab → · Contrast checker → · Palette generator →

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