#151E46#151E46

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

Color values

HEX#151E46
RGBrgb(21, 30, 70)
HSLhsl(229, 54%, 18%)
HSVhsv(229, 70%, 27%)
CMYKcmyk(70%, 57.1%, 0%, 72.5%)
CIE-LABlab(12.80, 11.06, -26.41)
CIE-LCHlch(12.80, 28.64, 292.73°)
OKLaboklab(25.24% 0.0008 -0.0757)
OKLCHoklch(25.24% 0.076 270.6)
XYZxyz(1.8787, 1.5300, 5.9895)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E46 #463D15
analogous
#153646 #151E46 #251546
triadic
#151E46 #46151E #1E4615
tetradic
#151E46 #461536 #463D15 #154625
square
#151E46 #461536 #463D15 #154625
split-complementary
#151E46 #462515 #364615
monochromatic
#070A18 #070A18 #151E46 #233275 #3146A4

Accessibility & contrast

On white

16.08
#151E46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151E46
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E46#FFFFFF#000000##FFFFFF
##151E461.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151e46;
/* rgb */ color: rgb(21, 30, 70);
/* oklch */ color: oklch(25.2% 0.076 270.6);
Tailwind
colors: {
  custom: {
    50: '#58597a',
    500: '#151e46',
    950: '#000000',
  },
}
SCSS
$custom: #151e46;
$custom-light: #58597a;
$custom-dark: #000000;
JSON
{
  "hex": "#151e46",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 70
  },
  "hsl": {
    "h": 228.98,
    "s": 53.846,
    "l": 17.843
  },
  "oklch": {
    "l": 0.2524,
    "c": 0.07569,
    "h": 270.6
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#151E46
secondary
#7E7139
accent
#C24BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151E46

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

Preview Lab → · Contrast checker → · Palette generator →

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