#151980#151980

#151980 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.165 H 269.7°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#151980
RGBrgb(21, 25, 128)
HSLhsl(238, 72%, 29%)
HSVhsv(238, 84%, 50%)
CMYKcmyk(83.6%, 80.5%, 0%, 49.8%)
CIE-LABlab(17.52, 37.09, -57.10)
CIE-LCHlch(17.52, 68.09, 303.01°)
OKLaboklab(30.48% -0.0009 -0.1654)
OKLCHoklch(30.48% 0.165 269.7)
XYZxyz(4.5518, 2.4127, 20.6437)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151980 #807C15
analogous
#154F80 #151980 #471580
triadic
#151980 #801519 #198015
tetradic
#151980 #80154F #807C15 #158047
square
#151980 #80154F #807C15 #158047
split-complementary
#151980 #804715 #4F8015
monochromatic
#04051A #0C0F4B #151980 #1E23B5 #3238DD

Accessibility & contrast

On white

14.16
#151980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#151980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151980
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151980#FFFFFF#000000##FFFFFF
##1519801.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151980;
/* rgb */ color: rgb(21, 25, 128);
/* oklch */ color: oklch(30.5% 0.165 269.7);
Tailwind
colors: {
  custom: {
    50: '#6958a6',
    500: '#151980',
    950: '#000000',
  },
}
SCSS
$custom: #151980;
$custom-light: #6958a6;
$custom-dark: #000000;
JSON
{
  "hex": "#151980",
  "rgb": {
    "r": 21,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 237.757,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30479,
    "c": 0.16541,
    "h": 269.7
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#151980
secondary
#B5B03C
accent
#E839EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #151980

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

Preview Lab → · Contrast checker → · Palette generator →

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