#151B45#151B45

#151B45 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.4% C 0.079 H 273.0°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#151B45
RGBrgb(21, 27, 69)
HSLhsl(233, 53%, 18%)
HSVhsv(233, 70%, 27%)
CMYKcmyk(69.6%, 60.9%, 0%, 72.9%)
CIE-LABlab(11.78, 12.93, -27.37)
CIE-LCHlch(11.78, 30.27, 295.30°)
OKLaboklab(24.44% 0.0042 -0.0785)
OKLCHoklch(24.44% 0.079 273)
XYZxyz(1.7750, 1.3728, 5.8005)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B45 #453F15
analogous
#153345 #151B45 #271545
triadic
#151B45 #45151B #1B4515
tetradic
#151B45 #451533 #453F15 #154527
square
#151B45 #451533 #453F15 #154527
split-complementary
#151B45 #452715 #334515
monochromatic
#070917 #070917 #151B45 #232D74 #3240A3

Accessibility & contrast

On white

16.48
#151B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#151B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B45
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B45#FFFFFF#000000##FFFFFF
##151B451.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022146
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#00252C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #151b45;
/* rgb */ color: rgb(21, 27, 69);
/* oklch */ color: oklch(24.4% 0.079 273.0);
Tailwind
colors: {
  custom: {
    50: '#585779',
    500: '#151b45',
    950: '#000000',
  },
}
SCSS
$custom: #151b45;
$custom-light: #585779;
$custom-dark: #000000;
JSON
{
  "hex": "#151b45",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 232.5,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24444,
    "c": 0.07865,
    "h": 273
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#151B45
secondary
#7D7439
accent
#CB4BDD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #151B45

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

Preview Lab → · Contrast checker → · Palette generator →

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