#151E89#151E89

#151E89 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.172 H 268.7°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#151E89
RGBrgb(21, 30, 137)
HSLhsl(235, 73%, 31%)
HSVhsv(235, 85%, 54%)
CMYKcmyk(84.7%, 78.1%, 0%, 46.3%)
CIE-LABlab(19.61, 37.37, -59.32)
CIE-LCHlch(19.61, 70.10, 302.21°)
OKLaboklab(32.27% -0.0039 -0.1719)
OKLCHoklch(32.27% 0.172 268.7)
XYZxyz(5.2873, 2.8935, 23.9419)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E89 #898015
analogous
#155889 #151E89 #461589
triadic
#151E89 #89151E #1E8915
tetradic
#151E89 #891558 #898015 #158946
square
#151E89 #891558 #898015 #158946
split-complementary
#151E89 #894615 #588915
monochromatic
#05071F #0D1254 #151E89 #1D2ABE #3845E0

Accessibility & contrast

On white

13.30
#151E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#151E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E89
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E89#FFFFFF#000000##FFFFFF
##151E891.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #151e89;
/* rgb */ color: rgb(21, 30, 137);
/* oklch */ color: oklch(32.3% 0.172 268.7);
Tailwind
colors: {
  custom: {
    50: '#6b5bad',
    500: '#151e89',
    950: '#000000',
  },
}
SCSS
$custom: #151e89;
$custom-light: #6b5bad;
$custom-dark: #000000;
JSON
{
  "hex": "#151e89",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 235.345,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32271,
    "c": 0.17192,
    "h": 268.7
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#151E89
secondary
#BDB33D
accent
#E238F0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #151E89

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

Preview Lab → · Contrast checker → · Palette generator →

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