#151D47#151D47

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

Color values

HEX#151D47
RGBrgb(21, 29, 71)
HSLhsl(230, 54%, 18%)
HSVhsv(230, 70%, 28%)
CMYKcmyk(70.4%, 59.2%, 0%, 72.2%)
CIE-LABlab(12.56, 12.24, -27.49)
CIE-LCHlch(12.56, 30.09, 294.00°)
OKLaboklab(25.09% 0.002 -0.0789)
OKLCHoklch(25.09% 0.079 271.5)
XYZxyz(1.8856, 1.4929, 6.1488)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D47 #473F15
analogous
#153647 #151D47 #261547
triadic
#151D47 #47151D #1D4715
tetradic
#151D47 #471536 #473F15 #154726
square
#151D47 #471536 #473F15 #154726
split-complementary
#151D47 #472615 #364715
monochromatic
#070A18 #070A18 #151D47 #233076 #3144A5

Accessibility & contrast

On white

16.17
#151D47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151D47
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D47#FFFFFF#000000##FFFFFF
##151D471.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042348
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151d47;
/* rgb */ color: rgb(21, 29, 71);
/* oklch */ color: oklch(25.1% 0.079 271.5);
Tailwind
colors: {
  custom: {
    50: '#59587a',
    500: '#151d47',
    950: '#000000',
  },
}
SCSS
$custom: #151d47;
$custom-light: #59587a;
$custom-dark: #000000;
JSON
{
  "hex": "#151d47",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 71
  },
  "hsl": {
    "h": 230.4,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25088,
    "c": 0.07889,
    "h": 271.5
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#151D47
secondary
#7F7439
accent
#C64ADE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151D47

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

Preview Lab → · Contrast checker → · Palette generator →

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