#151C45#151C45

#151C45 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.7% C 0.077 H 272.2°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#151C45
RGBrgb(21, 28, 69)
HSLhsl(231, 53%, 18%)
HSVhsv(231, 70%, 27%)
CMYKcmyk(69.6%, 59.4%, 0%, 72.9%)
CIE-LABlab(12.09, 12.17, -26.86)
CIE-LCHlch(12.09, 29.49, 294.37°)
OKLaboklab(24.68% 0.003 -0.077)
OKLCHoklch(24.68% 0.077 272.2)
XYZxyz(1.7983, 1.4195, 5.8083)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C45 #453E15
analogous
#153445 #151C45 #261545
triadic
#151C45 #45151C #1C4515
tetradic
#151C45 #451534 #453E15 #154526
square
#151C45 #451534 #453E15 #154526
split-complementary
#151C45 #452615 #344515
monochromatic
#070A17 #070A17 #151C45 #232F74 #3242A3

Accessibility & contrast

On white

16.36
#151C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#151C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C45
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C45#FFFFFF#000000##FFFFFF
##151C451.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042246
Deuteranopia (green-blind)
#001E44
Tritanopia (blue-blind)
#00262D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #151c45;
/* rgb */ color: rgb(21, 28, 69);
/* oklch */ color: oklch(24.7% 0.077 272.2);
Tailwind
colors: {
  custom: {
    50: '#585779',
    500: '#151c45',
    950: '#000000',
  },
}
SCSS
$custom: #151c45;
$custom-light: #585779;
$custom-dark: #000000;
JSON
{
  "hex": "#151c45",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 69
  },
  "hsl": {
    "h": 231.25,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24678,
    "c": 0.0771,
    "h": 272.2
  },
  "luminance": 0.0142
}

Semantic roles & 50–950 ramp

primary
#151C45
secondary
#7D7339
accent
#C74BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151C45

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

Preview Lab → · Contrast checker → · Palette generator →

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