#151F57#151F57

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

Color values

HEX#151F57
RGBrgb(21, 31, 87)
HSLhsl(231, 61%, 21%)
HSVhsv(231, 76%, 34%)
CMYKcmyk(75.9%, 64.4%, 0%, 65.9%)
CIE-LABlab(14.55, 17.38, -35.19)
CIE-LCHlch(14.55, 39.25, 296.28°)
OKLaboklab(27.01% 0.0006 -0.1015)
OKLCHoklch(27.01% 0.102 270.4)
XYZxyz(2.5190, 1.8273, 9.2349)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F57 #574D15
analogous
#154057 #151F57 #2C1557
triadic
#151F57 #57151F #1F5715
tetradic
#151F57 #571540 #574D15 #15572C
square
#151F57 #571540 #574D15 #15572C
split-complementary
#151F57 #572C15 #405715
monochromatic
#060919 #090D26 #151F57 #213188 #2D42BA

Accessibility & contrast

On white

15.38
#151F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F57
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F57#FFFFFF#000000##FFFFFF
##151F571.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151f57;
/* rgb */ color: rgb(21, 31, 87);
/* oklch */ color: oklch(27.0% 0.102 270.4);
Tailwind
colors: {
  custom: {
    50: '#5d5a87',
    500: '#151f57',
    950: '#000000',
  },
}
SCSS
$custom: #151f57;
$custom-light: #5d5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#151f57",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 230.909,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27014,
    "c": 0.1015,
    "h": 270.4
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#151F57
secondary
#8F8239
accent
#CC44E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151F57

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

Preview Lab → · Contrast checker → · Palette generator →

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