#151A40#151A40

#151A40 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.8% C 0.072 H 274.0°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#151A40
RGBrgb(21, 26, 64)
HSLhsl(233, 51%, 17%)
HSVhsv(233, 67%, 25%)
CMYKcmyk(67.2%, 59.4%, 0%, 74.9%)
CIE-LABlab(11.05, 11.64, -25.03)
CIE-LCHlch(11.05, 27.60, 294.95°)
OKLaboklab(23.77% 0.005 -0.0717)
OKLCHoklch(23.77% 0.072 274)
XYZxyz(1.6038, 1.2683, 5.0098)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A40 #403B15
analogous
#153040 #151A40 #261540
triadic
#151A40 #40151A #1A4015
tetradic
#151A40 #401530 #403B15 #154026
square
#151A40 #401530 #403B15 #154026
split-complementary
#151A40 #402615 #304015
monochromatic
#080917 #080917 #151A40 #242D6E #333F9C

Accessibility & contrast

On white

16.75
#151A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151A40
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A40#FFFFFF#000000##FFFFFF
##151A401.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051F41
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#00232A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #151a40;
/* rgb */ color: rgb(21, 26, 64);
/* oklch */ color: oklch(23.8% 0.072 274.0);
Tailwind
colors: {
  custom: {
    50: '#575675',
    500: '#151a40',
    950: '#000000',
  },
}
SCSS
$custom: #151a40;
$custom-light: #575675;
$custom-dark: #000000;
JSON
{
  "hex": "#151a40",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 233.023,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23769,
    "c": 0.07184,
    "h": 274
  },
  "luminance": 0.01268
}

Semantic roles & 50–950 ramp

primary
#151A40
secondary
#787039
accent
#CA4EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #151A40

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

Preview Lab → · Contrast checker → · Palette generator →

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