#151880#151880

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

Color values

HEX#151880
RGBrgb(21, 24, 128)
HSLhsl(238, 72%, 29%)
HSVhsv(238, 84%, 50%)
CMYKcmyk(83.6%, 81.3%, 0%, 49.8%)
CIE-LABlab(17.32, 37.66, -57.43)
CIE-LCHlch(17.32, 68.67, 303.25°)
OKLaboklab(30.34% -0.0006 -0.1663)
OKLCHoklch(30.34% 0.166 269.8)
XYZxyz(4.5308, 2.3707, 20.6367)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151880 #807D15
analogous
#154E80 #151880 #481580
triadic
#151880 #801518 #188015
tetradic
#151880 #80154E #807D15 #158048
square
#151880 #80154E #807D15 #158048
split-complementary
#151880 #804815 #4E8015
monochromatic
#04051A #0C0E4B #151880 #1E22B5 #3237DD

Accessibility & contrast

On white

14.25
#151880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#151880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151880
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151880#FFFFFF#000000##FFFFFF
##1518801.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00257E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151880;
/* rgb */ color: rgb(21, 24, 128);
/* oklch */ color: oklch(30.3% 0.166 269.8);
Tailwind
colors: {
  custom: {
    50: '#6957a6',
    500: '#151880',
    950: '#000000',
  },
}
SCSS
$custom: #151880;
$custom-light: #6957a6;
$custom-dark: #000000;
JSON
{
  "hex": "#151880",
  "rgb": {
    "r": 21,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 238.318,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30342,
    "c": 0.16633,
    "h": 269.8
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#151880
secondary
#B5B23C
accent
#E939EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #151880

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

Preview Lab → · Contrast checker → · Palette generator →

#151880 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva