#151F41#151F41

#151F41 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.066 H 269.0°. Best body text is #FFFFFF at 16.10:1 contrast (WCAG AA passes).

Color values

HEX#151F41
RGBrgb(21, 31, 65)
HSLhsl(226, 51%, 17%)
HSVhsv(226, 68%, 25%)
CMYKcmyk(67.7%, 52.3%, 0%, 74.5%)
CIE-LABlab(12.74, 8.23, -23.02)
CIE-LCHlch(12.74, 24.44, 289.67°)
OKLaboklab(25.07% -0.0012 -0.0657)
OKLCHoklch(25.07% 0.066 269)
XYZxyz(1.7531, 1.5209, 5.2012)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F41 #413715
analogous
#153541 #151F41 #211541
triadic
#151F41 #41151F #1F4115
tetradic
#151F41 #411535 #413715 #154121
square
#151F41 #411535 #413715 #154121
split-complementary
#151F41 #412115 #354115
monochromatic
#070B17 #070B17 #151F41 #24356F #334B9E

Accessibility & contrast

On white

16.10
#151F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F41
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F41#FFFFFF#000000##FFFFFF
##151F411.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2342
Deuteranopia (green-blind)
#081F40
Tritanopia (blue-blind)
#00272C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151f41;
/* rgb */ color: rgb(21, 31, 65);
/* oklch */ color: oklch(25.1% 0.066 269.0);
Tailwind
colors: {
  custom: {
    50: '#575a76',
    500: '#151f41',
    950: '#000000',
  },
}
SCSS
$custom: #151f41;
$custom-light: #575a76;
$custom-dark: #000000;
JSON
{
  "hex": "#151f41",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 65
  },
  "hsl": {
    "h": 226.364,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25074,
    "c": 0.06569,
    "h": 269
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#151F41
secondary
#796A39
accent
#BA4DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151F41

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

Preview Lab → · Contrast checker → · Palette generator →

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