#151F61#151F61

#151F61 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.117 H 270.2°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#151F61
RGBrgb(21, 31, 97)
HSLhsl(232, 64%, 23%)
HSVhsv(232, 78%, 38%)
CMYKcmyk(78.4%, 68%, 0%, 62%)
CIE-LABlab(15.50, 21.47, -40.33)
CIE-LCHlch(15.50, 45.69, 298.03°)
OKLaboklab(28.01% 0.0004 -0.1166)
OKLCHoklch(28.01% 0.117 270.2)
XYZxyz(2.9562, 2.0022, 11.5376)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F61 #615715
analogous
#154561 #151F61 #311561
triadic
#151F61 #61151F #1F6115
tetradic
#151F61 #611545 #615715 #156131
square
#151F61 #611545 #615715 #156131
split-complementary
#151F61 #613115 #456115
monochromatic
#050819 #0A0F2F #151F61 #202F93 #2B3FC6

Accessibility & contrast

On white

15.00
#151F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#151F61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F61
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F61#FFFFFF#000000##FFFFFF
##151F611.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151f61;
/* rgb */ color: rgb(21, 31, 97);
/* oklch */ color: oklch(28.0% 0.117 270.2);
Tailwind
colors: {
  custom: {
    50: '#605a8f',
    500: '#151f61',
    950: '#000000',
  },
}
SCSS
$custom: #151f61;
$custom-light: #605a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#151f61",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 97
  },
  "hsl": {
    "h": 232.105,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28006,
    "c": 0.11658,
    "h": 270.2
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#151F61
secondary
#988C3A
accent
#D140E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151F61

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

Preview Lab → · Contrast checker → · Palette generator →

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