#151A7D#151A7D

#151A7D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.161 H 269.8°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#151A7D
RGBrgb(21, 26, 125)
HSLhsl(237, 71%, 29%)
HSVhsv(237, 83%, 49%)
CMYKcmyk(83.2%, 79.2%, 0%, 51%)
CIE-LABlab(17.36, 35.46, -55.46)
CIE-LCHlch(17.36, 65.83, 302.59°)
OKLaboklab(30.26% -0.0006 -0.1606)
OKLCHoklch(30.26% 0.161 269.8)
XYZxyz(4.3791, 2.3784, 19.6263)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A7D #7D7815
analogous
#154E7D #151A7D #44157D
triadic
#151A7D #7D151A #1A7D15
tetradic
#151A7D #7D154E #7D7815 #157D44
square
#151A7D #7D154E #7D7815 #157D44
split-complementary
#151A7D #7D4415 #4E7D15
monochromatic
#04051A #0C0F49 #151A7D #1E25B1 #3038DC

Accessibility & contrast

On white

14.23
#151A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#151A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A7D
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A7D#FFFFFF#000000##FFFFFF
##151A7D1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151a7d;
/* rgb */ color: rgb(21, 26, 125);
/* oklch */ color: oklch(30.3% 0.161 269.8);
Tailwind
colors: {
  custom: {
    50: '#6858a4',
    500: '#151a7d',
    950: '#000000',
  },
}
SCSS
$custom: #151a7d;
$custom-light: #6858a4;
$custom-dark: #000000;
JSON
{
  "hex": "#151a7d",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 237.115,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30261,
    "c": 0.16065,
    "h": 269.8
  },
  "luminance": 0.02379
}

Semantic roles & 50–950 ramp

primary
#151A7D
secondary
#B2AC3C
accent
#E53AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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