#151B38#151B38

#151B38 is a very dark, muted blue. Relative luminance 0.012; OKLCH L 23.4% C 0.056 H 272.5°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#151B38
RGBrgb(21, 27, 56)
HSLhsl(230, 45%, 15%)
HSVhsv(230, 63%, 22%)
CMYKcmyk(62.5%, 51.8%, 0%, 78%)
CIE-LABlab(10.77, 7.62, -19.79)
CIE-LCHlch(10.77, 21.21, 291.05°)
OKLaboklab(23.36% 0.0025 -0.0563)
OKLCHoklch(23.36% 0.056 272.5)
XYZxyz(1.4148, 1.2287, 3.9032)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B38 #383215
analogous
#152D38 #151B38 #201538
triadic
#151B38 #38151B #1B3815
tetradic
#151B38 #38152D #383215 #153820
square
#151B38 #38152D #383215 #153820
split-complementary
#151B38 #382015 #2D3815
monochromatic
#080B16 #080B16 #151B38 #263065 #364691

Accessibility & contrast

On white

16.86
#151B38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#151B38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B38
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B38#FFFFFF#000000##FFFFFF
##151B381.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1F39
Deuteranopia (green-blind)
#0A1C37
Tritanopia (blue-blind)
#052126
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #151b38;
/* rgb */ color: rgb(21, 27, 56);
/* oklch */ color: oklch(23.4% 0.056 272.5);
Tailwind
colors: {
  custom: {
    50: '#56576f',
    500: '#151b38',
    950: '#000000',
  },
}
SCSS
$custom: #151b38;
$custom-light: #56576f;
$custom-dark: #000000;
JSON
{
  "hex": "#151b38",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 56
  },
  "hsl": {
    "h": 229.714,
    "s": 45.455,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23358,
    "c": 0.05634,
    "h": 272.5
  },
  "luminance": 0.01229
}

Semantic roles & 50–950 ramp

primary
#151B38
secondary
#6F663A
accent
#BF53D5
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#030307
muted
#78787A

Preview Lab

Preview with #151B38

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

Preview Lab → · Contrast checker → · Palette generator →

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