#151D5C#151D5C

#151D5C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.112 H 271.1°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#151D5C
RGBrgb(21, 29, 92)
HSLhsl(233, 63%, 22%)
HSVhsv(233, 77%, 36%)
CMYKcmyk(77.2%, 68.5%, 0%, 63.9%)
CIE-LABlab(14.46, 20.88, -38.70)
CIE-LCHlch(14.46, 43.98, 298.35°)
OKLaboklab(27.09% 0.0022 -0.1118)
OKLCHoklch(27.09% 0.112 271.1)
XYZxyz(2.6797, 1.8106, 10.3314)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D5C #5C5415
analogous
#15415C #151D5C #30155C
triadic
#151D5C #5C151D #1D5C15
tetradic
#151D5C #5C1541 #5C5415 #155C30
square
#151D5C #5C1541 #5C5415 #155C30
split-complementary
#151D5C #5C3015 #415C15
monochromatic
#060819 #0A0D2A #151D5C #202D8E #2C3CC0

Accessibility & contrast

On white

15.42
#151D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151D5C
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D5C#FFFFFF#000000##FFFFFF
##151D5C1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151d5c;
/* rgb */ color: rgb(21, 29, 92);
/* oklch */ color: oklch(27.1% 0.112 271.1);
Tailwind
colors: {
  custom: {
    50: '#5e598b',
    500: '#151d5c',
    950: '#000000',
  },
}
SCSS
$custom: #151d5c;
$custom-light: #5e598b;
$custom-dark: #000000;
JSON
{
  "hex": "#151d5c",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 92
  },
  "hsl": {
    "h": 233.239,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27092,
    "c": 0.11184,
    "h": 271.1
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#151D5C
secondary
#938939
accent
#D342E6
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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