#151F89#151F89

#151F89 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.171 H 268.6°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#151F89
RGBrgb(21, 31, 137)
HSLhsl(235, 73%, 31%)
HSVhsv(235, 85%, 54%)
CMYKcmyk(84.7%, 77.4%, 0%, 46.3%)
CIE-LABlab(19.82, 36.77, -58.97)
CIE-LCHlch(19.82, 69.49, 301.95°)
OKLaboklab(32.42% -0.0042 -0.1709)
OKLCHoklch(32.42% 0.171 268.6)
XYZxyz(5.3130, 2.9449, 23.9505)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F89 #897F15
analogous
#155989 #151F89 #451589
triadic
#151F89 #89151F #1F8915
tetradic
#151F89 #891559 #897F15 #158945
square
#151F89 #891559 #897F15 #158945
split-complementary
#151F89 #894515 #598915
monochromatic
#05071F #0D1354 #151F89 #1D2BBE #3846E0

Accessibility & contrast

On white

13.21
#151F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#151F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F89
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F89#FFFFFF#000000##FFFFFF
##151F891.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #151f89;
/* rgb */ color: rgb(21, 31, 137);
/* oklch */ color: oklch(32.4% 0.171 268.6);
Tailwind
colors: {
  custom: {
    50: '#6b5cad',
    500: '#151f89',
    950: '#000000',
  },
}
SCSS
$custom: #151f89;
$custom-light: #6b5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#151f89",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 234.828,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3242,
    "c": 0.17093,
    "h": 268.6
  },
  "luminance": 0.02946
}

Semantic roles & 50–950 ramp

primary
#151F89
secondary
#BDB23D
accent
#E038F0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #151F89

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

Preview Lab → · Contrast checker → · Palette generator →

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