#151B5A#151B5A

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

Color values

HEX#151B5A
RGBrgb(21, 27, 90)
HSLhsl(235, 62%, 22%)
HSVhsv(235, 77%, 35%)
CMYKcmyk(76.7%, 70%, 0%, 64.7%)
CIE-LABlab(13.72, 21.52, -38.58)
CIE-LCHlch(13.72, 44.17, 299.15°)
OKLaboklab(26.49% 0.0038 -0.1115)
OKLCHoklch(26.49% 0.112 272)
XYZxyz(2.5460, 1.6812, 9.8612)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B5A #5A5415
analogous
#153E5A #151B5A #32155A
triadic
#151B5A #5A151B #1B5A15
tetradic
#151B5A #5A153E #5A5415 #155A32
square
#151B5A #5A153E #5A5415 #155A32
split-complementary
#151B5A #5A3215 #3E5A15
monochromatic
#060719 #090C28 #151B5A #212A8C #2C39BD

Accessibility & contrast

On white

15.72
#151B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B5A
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B5A#FFFFFF#000000##FFFFFF
##151B5A1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151b5a;
/* rgb */ color: rgb(21, 27, 90);
/* oklch */ color: oklch(26.5% 0.112 272.0);
Tailwind
colors: {
  custom: {
    50: '#5e5789',
    500: '#151b5a',
    950: '#000000',
  },
}
SCSS
$custom: #151b5a;
$custom-light: #5e5789;
$custom-dark: #000000;
JSON
{
  "hex": "#151b5a",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 234.783,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26486,
    "c": 0.11154,
    "h": 272
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#151B5A
secondary
#928A39
accent
#D743E5
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #151B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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