#151A42#151A42

#151A42 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.9% C 0.075 H 273.9°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#151A42
RGBrgb(21, 26, 66)
HSLhsl(233, 52%, 17%)
HSVhsv(233, 68%, 26%)
CMYKcmyk(68.2%, 60.6%, 0%, 74.1%)
CIE-LABlab(11.22, 12.46, -26.17)
CIE-LCHlch(11.22, 28.99, 295.47°)
OKLaboklab(23.94% 0.0051 -0.075)
OKLCHoklch(23.94% 0.075 273.9)
XYZxyz(1.6617, 1.2914, 5.3149)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A42 #423D15
analogous
#153142 #151A42 #271542
triadic
#151A42 #42151A #1A4215
tetradic
#151A42 #421531 #423D15 #154227
square
#151A42 #421531 #423D15 #154227
split-complementary
#151A42 #422715 #314215
monochromatic
#070917 #070917 #151A42 #242C70 #333F9F

Accessibility & contrast

On white

16.69
#151A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#151A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A42
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A42#FFFFFF#000000##FFFFFF
##151A421.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032043
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#00232B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #151a42;
/* rgb */ color: rgb(21, 26, 66);
/* oklch */ color: oklch(23.9% 0.075 273.9);
Tailwind
colors: {
  custom: {
    50: '#585677',
    500: '#151a42',
    950: '#000000',
  },
}
SCSS
$custom: #151a42;
$custom-light: #585677;
$custom-dark: #000000;
JSON
{
  "hex": "#151a42",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 233.333,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23944,
    "c": 0.07521,
    "h": 273.9
  },
  "luminance": 0.01292
}

Semantic roles & 50–950 ramp

primary
#151A42
secondary
#7A7339
accent
#CB4DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151A42

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

Preview Lab → · Contrast checker → · Palette generator →

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