#151A54#151A54

#151A54 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.7% C 0.104 H 272.8°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#151A54
RGBrgb(21, 26, 84)
HSLhsl(235, 60%, 21%)
HSVhsv(235, 75%, 33%)
CMYKcmyk(75%, 69%, 0%, 67.1%)
CIE-LABlab(12.85, 19.82, -35.95)
CIE-LCHlch(12.85, 41.05, 298.87°)
OKLaboklab(25.67% 0.0051 -0.1038)
OKLCHoklch(25.67% 0.104 272.8)
XYZxyz(2.2784, 1.5381, 8.5626)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A54 #544F15
analogous
#153954 #151A54 #2F1554
triadic
#151A54 #54151A #1A5415
tetradic
#151A54 #541539 #544F15 #15542F
square
#151A54 #541539 #544F15 #15542F
split-complementary
#151A54 #542F15 #395415
monochromatic
#060818 #090B23 #151A54 #212985 #2D38B6

Accessibility & contrast

On white

16.06
#151A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#151A54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A54
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A54#FFFFFF#000000##FFFFFF
##151A541.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002456
Deuteranopia (green-blind)
#001E53
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #151a54;
/* rgb */ color: rgb(21, 26, 84);
/* oklch */ color: oklch(25.7% 0.104 272.8);
Tailwind
colors: {
  custom: {
    50: '#5d5685',
    500: '#151a54',
    950: '#000000',
  },
}
SCSS
$custom: #151a54;
$custom-light: #5d5685;
$custom-dark: #000000;
JSON
{
  "hex": "#151a54",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 84
  },
  "hsl": {
    "h": 235.238,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25667,
    "c": 0.10389,
    "h": 272.8
  },
  "luminance": 0.01538
}

Semantic roles & 50–950 ramp

primary
#151A54
secondary
#8C8539
accent
#D745E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151A54

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

Preview Lab → · Contrast checker → · Palette generator →

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