#151A5E#151A5E

#151A5E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.119 H 272.0°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#151A5E
RGBrgb(21, 26, 94)
HSLhsl(236, 63%, 23%)
HSVhsv(236, 78%, 37%)
CMYKcmyk(77.7%, 72.3%, 0%, 63.1%)
CIE-LABlab(13.86, 23.81, -41.02)
CIE-LCHlch(13.86, 47.43, 300.14°)
OKLaboklab(26.72% 0.0042 -0.1186)
OKLCHoklch(26.72% 0.119 272)
XYZxyz(2.6984, 1.7061, 10.7746)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A5E #5E5915
analogous
#153F5E #151A5E #34155E
triadic
#151A5E #5E151A #1A5E15
tetradic
#151A5E #5E153F #5E5915 #155E34
square
#151A5E #5E153F #5E5915 #155E34
split-complementary
#151A5E #5E3415 #3F5E15
monochromatic
#060719 #0A0C2C #151A5E #202890 #2B36C2

Accessibility & contrast

On white

15.66
#151A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151A5E
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A5E#FFFFFF#000000##FFFFFF
##151A5E1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002C39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151a5e;
/* rgb */ color: rgb(21, 26, 94);
/* oklch */ color: oklch(26.7% 0.119 272.0);
Tailwind
colors: {
  custom: {
    50: '#5f568c',
    500: '#151a5e',
    950: '#000000',
  },
}
SCSS
$custom: #151a5e;
$custom-light: #5f568c;
$custom-dark: #000000;
JSON
{
  "hex": "#151a5e",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 235.89,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26718,
    "c": 0.11869,
    "h": 272
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#151A5E
secondary
#958F39
accent
#DB41E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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