#151B5D#151B5D

#151B5D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.116 H 271.8°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#151B5D
RGBrgb(21, 27, 93)
HSLhsl(235, 63%, 22%)
HSVhsv(235, 77%, 36%)
CMYKcmyk(77.4%, 71%, 0%, 63.5%)
CIE-LABlab(14.02, 22.72, -40.09)
CIE-LCHlch(14.02, 46.08, 299.53°)
OKLaboklab(26.8% 0.0036 -0.1159)
OKLCHoklch(26.8% 0.116 271.8)
XYZxyz(2.6763, 1.7333, 10.5473)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B5D #5D5715
analogous
#153F5D #151B5D #33155D
triadic
#151B5D #5D151B #1B5D15
tetradic
#151B5D #5D153F #5D5715 #155D33
square
#151B5D #5D153F #5D5715 #155D33
split-complementary
#151B5D #5D3315 #3F5D15
monochromatic
#060719 #0A0D2B #151B5D #20298F #2C38C1

Accessibility & contrast

On white

15.59
#151B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#151B5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B5D
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B5D#FFFFFF#000000##FFFFFF
##151B5D1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151b5d;
/* rgb */ color: rgb(21, 27, 93);
/* oklch */ color: oklch(26.8% 0.116 271.8);
Tailwind
colors: {
  custom: {
    50: '#5f578c',
    500: '#151b5d',
    950: '#000000',
  },
}
SCSS
$custom: #151b5d;
$custom-light: #5f578c;
$custom-dark: #000000;
JSON
{
  "hex": "#151b5d",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 235,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26801,
    "c": 0.11595,
    "h": 271.8
  },
  "luminance": 0.01734
}

Semantic roles & 50–950 ramp

primary
#151B5D
secondary
#948D39
accent
#D842E6
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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