#151E47#151E47

#151E47 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.077 H 270.6°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#151E47
RGBrgb(21, 30, 71)
HSLhsl(229, 54%, 18%)
HSVhsv(229, 70%, 28%)
CMYKcmyk(70.4%, 57.7%, 0%, 72.2%)
CIE-LABlab(12.88, 11.48, -26.98)
CIE-LCHlch(12.88, 29.32, 293.05°)
OKLaboklab(25.32% 0.0009 -0.0773)
OKLCHoklch(25.32% 0.077 270.6)
XYZxyz(1.9105, 1.5427, 6.1571)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E47 #473E15
analogous
#153747 #151E47 #251547
triadic
#151E47 #47151E #1E4715
tetradic
#151E47 #471537 #473E15 #154725
square
#151E47 #471537 #473E15 #154725
split-complementary
#151E47 #472515 #374715
monochromatic
#070A18 #070A18 #151E47 #233276 #3146A5

Accessibility & contrast

On white

16.05
#151E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#151E47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E47
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E47#FFFFFF#000000##FFFFFF
##151E471.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062448
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151e47;
/* rgb */ color: rgb(21, 30, 71);
/* oklch */ color: oklch(25.3% 0.077 270.6);
Tailwind
colors: {
  custom: {
    50: '#59597a',
    500: '#151e47',
    950: '#000000',
  },
}
SCSS
$custom: #151e47;
$custom-light: #59597a;
$custom-dark: #000000;
JSON
{
  "hex": "#151e47",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 71
  },
  "hsl": {
    "h": 229.2,
    "s": 54.348,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25325,
    "c": 0.07735,
    "h": 270.6
  },
  "luminance": 0.01543
}

Semantic roles & 50–950 ramp

primary
#151E47
secondary
#7F7239
accent
#C34ADE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151E47

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

Preview Lab → · Contrast checker → · Palette generator →

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