#151A5F#151A5F

#151A5F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.120 H 271.9°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#151A5F
RGBrgb(21, 26, 95)
HSLhsl(236, 64%, 23%)
HSVhsv(236, 78%, 37%)
CMYKcmyk(77.9%, 72.6%, 0%, 62.7%)
CIE-LABlab(13.97, 24.21, -41.51)
CIE-LCHlch(13.97, 48.06, 300.24°)
OKLaboklab(26.83% 0.0041 -0.1201)
OKLCHoklch(26.83% 0.12 271.9)
XYZxyz(2.7435, 1.7242, 11.0125)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A5F #5F5A15
analogous
#153F5F #151A5F #35155F
triadic
#151A5F #5F151A #1A5F15
tetradic
#151A5F #5F153F #5F5A15 #155F35
square
#151A5F #5F153F #5F5A15 #155F35
split-complementary
#151A5F #5F3515 #3F5F15
monochromatic
#060719 #0A0C2D #151A5F #202891 #2B35C3

Accessibility & contrast

On white

15.62
#151A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#151A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A5F
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A5F#FFFFFF#000000##FFFFFF
##151A5F1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151a5f;
/* rgb */ color: rgb(21, 26, 95);
/* oklch */ color: oklch(26.8% 0.120 271.9);
Tailwind
colors: {
  custom: {
    50: '#60568d',
    500: '#151a5f',
    950: '#000000',
  },
}
SCSS
$custom: #151a5f;
$custom-light: #60568d;
$custom-dark: #000000;
JSON
{
  "hex": "#151a5f",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 95
  },
  "hsl": {
    "h": 235.946,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26826,
    "c": 0.12013,
    "h": 271.9
  },
  "luminance": 0.01724
}

Semantic roles & 50–950 ramp

primary
#151A5F
secondary
#96903A
accent
#DC41E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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