#151F55#151F55

#151F55 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.098 H 270.4°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#151F55
RGBrgb(21, 31, 85)
HSLhsl(231, 60%, 21%)
HSVhsv(231, 75%, 33%)
CMYKcmyk(75.3%, 63.5%, 0%, 66.7%)
CIE-LABlab(14.37, 16.55, -34.14)
CIE-LCHlch(14.37, 37.94, 295.86°)
OKLaboklab(26.82% 0.0006 -0.0984)
OKLCHoklch(26.82% 0.098 270.4)
XYZxyz(2.4384, 1.7950, 8.8105)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F55 #554B15
analogous
#153F55 #151F55 #2B1555
triadic
#151F55 #55151F #1F5515
tetradic
#151F55 #55153F #554B15 #15552B
square
#151F55 #55153F #554B15 #15552B
split-complementary
#151F55 #552B15 #3F5515
monochromatic
#060919 #090D24 #151F55 #213186 #2D43B7

Accessibility & contrast

On white

15.45
#151F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#151F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F55
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F55#FFFFFF#000000##FFFFFF
##151F551.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#002C36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151f55;
/* rgb */ color: rgb(21, 31, 85);
/* oklch */ color: oklch(26.8% 0.098 270.4);
Tailwind
colors: {
  custom: {
    50: '#5c5a85',
    500: '#151f55',
    950: '#000000',
  },
}
SCSS
$custom: #151f55;
$custom-light: #5c5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#151f55",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 230.625,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26823,
    "c": 0.0984,
    "h": 270.4
  },
  "luminance": 0.01795
}

Semantic roles & 50–950 ramp

primary
#151F55
secondary
#8D8039
accent
#CB44E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151F55

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

Preview Lab → · Contrast checker → · Palette generator →

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