#151E54#151E54

#151E54 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.098 H 270.9°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#151E54
RGBrgb(21, 30, 84)
HSLhsl(231, 60%, 21%)
HSVhsv(231, 75%, 33%)
CMYKcmyk(75%, 64.3%, 0%, 67.1%)
CIE-LABlab(13.99, 16.88, -34.09)
CIE-LCHlch(13.99, 38.04, 296.34°)
OKLaboklab(26.51% 0.0015 -0.0983)
OKLCHoklch(26.51% 0.098 270.9)
XYZxyz(2.3732, 1.7278, 8.5942)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E54 #544B15
analogous
#153D54 #151E54 #2B1554
triadic
#151E54 #54151E #1E5415
tetradic
#151E54 #54153D #544B15 #15542B
square
#151E54 #54153D #544B15 #15542B
split-complementary
#151E54 #542B15 #3D5415
monochromatic
#060918 #090D23 #151E54 #212F85 #2D41B6

Accessibility & contrast

On white

15.61
#151E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#151E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E54
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E54#FFFFFF#000000##FFFFFF
##151E541.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002756
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151e54;
/* rgb */ color: rgb(21, 30, 84);
/* oklch */ color: oklch(26.5% 0.098 270.9);
Tailwind
colors: {
  custom: {
    50: '#5c5985',
    500: '#151e54',
    950: '#000000',
  },
}
SCSS
$custom: #151e54;
$custom-light: #5c5985;
$custom-dark: #000000;
JSON
{
  "hex": "#151e54",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 84
  },
  "hsl": {
    "h": 231.429,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26509,
    "c": 0.09827,
    "h": 270.9
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#151E54
secondary
#8C8039
accent
#CD45E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151E54

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

Preview Lab → · Contrast checker → · Palette generator →

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