#151D5F#151D5F

#151D5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.116 H 271.0°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#151D5F
RGBrgb(21, 29, 95)
HSLhsl(234, 64%, 23%)
HSVhsv(234, 78%, 37%)
CMYKcmyk(77.9%, 69.5%, 0%, 62.7%)
CIE-LABlab(14.76, 22.10, -40.22)
CIE-LCHlch(14.76, 45.89, 298.78°)
OKLaboklab(27.4% 0.002 -0.1163)
OKLCHoklch(27.4% 0.116 271)
XYZxyz(2.8135, 1.8641, 11.0358)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D5F #5F5715
analogous
#15425F #151D5F #32155F
triadic
#151D5F #5F151D #1D5F15
tetradic
#151D5F #5F1542 #5F5715 #155F32
square
#151D5F #5F1542 #5F5715 #155F32
split-complementary
#151D5F #5F3215 #425F15
monochromatic
#060819 #0A0E2D #151D5F #202C91 #2B3CC3

Accessibility & contrast

On white

15.30
#151D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151D5F
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D5F#FFFFFF#000000##FFFFFF
##151D5F1.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151d5f;
/* rgb */ color: rgb(21, 29, 95);
/* oklch */ color: oklch(27.4% 0.116 271.0);
Tailwind
colors: {
  custom: {
    50: '#5f598d',
    500: '#151d5f',
    950: '#000000',
  },
}
SCSS
$custom: #151d5f;
$custom-light: #5f598d;
$custom-dark: #000000;
JSON
{
  "hex": "#151d5f",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 233.514,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27401,
    "c": 0.11628,
    "h": 271
  },
  "luminance": 0.01864
}

Semantic roles & 50–950 ramp

primary
#151D5F
secondary
#968C3A
accent
#D541E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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