#151E45#151E45

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

Color values

HEX#151E45
RGBrgb(21, 30, 69)
HSLhsl(229, 53%, 18%)
HSVhsv(229, 70%, 27%)
CMYKcmyk(69.6%, 56.5%, 0%, 72.9%)
CIE-LABlab(12.72, 10.65, -25.84)
CIE-LCHlch(12.72, 27.95, 292.39°)
OKLaboklab(25.16% 0.0006 -0.074)
OKLCHoklch(25.16% 0.074 270.5)
XYZxyz(1.8474, 1.5175, 5.8246)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E45 #453C15
analogous
#153645 #151E45 #241545
triadic
#151E45 #45151E #1E4515
tetradic
#151E45 #451536 #453C15 #154524
square
#151E45 #451536 #453C15 #154524
split-complementary
#151E45 #452415 #364515
monochromatic
#070A17 #070A17 #151E45 #233274 #3247A3

Accessibility & contrast

On white

16.11
#151E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151E45
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E45#FFFFFF#000000##FFFFFF
##151E451.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092346
Deuteranopia (green-blind)
#011F44
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151e45;
/* rgb */ color: rgb(21, 30, 69);
/* oklch */ color: oklch(25.2% 0.074 270.5);
Tailwind
colors: {
  custom: {
    50: '#585979',
    500: '#151e45',
    950: '#000000',
  },
}
SCSS
$custom: #151e45;
$custom-light: #585979;
$custom-dark: #000000;
JSON
{
  "hex": "#151e45",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 69
  },
  "hsl": {
    "h": 228.75,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25155,
    "c": 0.07401,
    "h": 270.5
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#151E45
secondary
#7D7039
accent
#C14BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151E45

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

Preview Lab → · Contrast checker → · Palette generator →

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