#151E72#151E72

#151E72 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.142 H 269.8°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#151E72
RGBrgb(21, 30, 114)
HSLhsl(234, 69%, 26%)
HSVhsv(234, 82%, 45%)
CMYKcmyk(81.6%, 73.7%, 0%, 55.3%)
CIE-LABlab(17.00, 28.87, -48.99)
CIE-LCHlch(17.00, 56.87, 300.51°)
OKLaboklab(29.63% -0.0006 -0.1419)
OKLCHoklch(29.63% 0.142 269.8)
XYZxyz(3.8098, 2.3025, 16.1600)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E72 #726915
analogous
#154D72 #151E72 #3B1572
triadic
#151E72 #72151E #1E7215
tetradic
#151E72 #72154D #726915 #15723B
square
#151E72 #72154D #726915 #15723B
split-complementary
#151E72 #723B15 #4D7215
monochromatic
#05071A #0B103E #151E72 #1F2CA6 #2A3BD8

Accessibility & contrast

On white

14.38
#151E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#151E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E72
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E72#FFFFFF#000000##FFFFFF
##151E721.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #151e72;
/* rgb */ color: rgb(21, 30, 114);
/* oklch */ color: oklch(29.6% 0.142 269.8);
Tailwind
colors: {
  custom: {
    50: '#655a9c',
    500: '#151e72',
    950: '#000000',
  },
}
SCSS
$custom: #151e72;
$custom-light: #655a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#151e72",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 234.194,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29633,
    "c": 0.14188,
    "h": 269.8
  },
  "luminance": 0.02303
}

Semantic roles & 50–950 ramp

primary
#151E72
secondary
#A89E3B
accent
#DB3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #151E72

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

Preview Lab → · Contrast checker → · Palette generator →

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