#151F59#151F59

#151F59 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.105 H 270.3°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#151F59
RGBrgb(21, 31, 89)
HSLhsl(231, 62%, 22%)
HSVhsv(231, 76%, 35%)
CMYKcmyk(76.4%, 65.2%, 0%, 65.1%)
CIE-LABlab(14.74, 18.20, -36.24)
CIE-LCHlch(14.74, 40.56, 296.67°)
OKLaboklab(27.21% 0.0006 -0.1046)
OKLCHoklch(27.21% 0.105 270.3)
XYZxyz(2.6018, 1.8604, 9.6712)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F59 #594F15
analogous
#154159 #151F59 #2D1559
triadic
#151F59 #59151F #1F5915
tetradic
#151F59 #591541 #594F15 #15592D
square
#151F59 #591541 #594F15 #15592D
split-complementary
#151F59 #592D15 #415915
monochromatic
#060919 #090E27 #151F59 #21308B #2C41BC

Accessibility & contrast

On white

15.30
#151F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#151F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F59
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F59#FFFFFF#000000##FFFFFF
##151F591.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151f59;
/* rgb */ color: rgb(21, 31, 89);
/* oklch */ color: oklch(27.2% 0.105 270.3);
Tailwind
colors: {
  custom: {
    50: '#5d5a88',
    500: '#151f59',
    950: '#000000',
  },
}
SCSS
$custom: #151f59;
$custom-light: #5d5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#151f59",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 231.176,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27208,
    "c": 0.10457,
    "h": 270.3
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#151F59
secondary
#918439
accent
#CD43E5
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #151F59

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

Preview Lab → · Contrast checker → · Palette generator →

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