#151D80#151D80

#151D80 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.161 H 269.2°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#151D80
RGBrgb(21, 29, 128)
HSLhsl(236, 72%, 29%)
HSVhsv(236, 84%, 50%)
CMYKcmyk(83.6%, 77.3%, 0%, 49.8%)
CIE-LABlab(18.35, 34.73, -55.73)
CIE-LCHlch(18.35, 65.67, 301.93°)
OKLaboklab(31.07% -0.0021 -0.1615)
OKLCHoklch(31.07% 0.161 269.2)
XYZxyz(4.6436, 2.5961, 20.6743)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D80 #807815
analogous
#155380 #151D80 #431580
triadic
#151D80 #80151D #1D8015
tetradic
#151D80 #801553 #807815 #158043
square
#151D80 #801553 #807815 #158043
split-complementary
#151D80 #804315 #538015
monochromatic
#04061A #0C114B #151D80 #1E29B5 #323FDD

Accessibility & contrast

On white

13.82
#151D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#151D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151D80
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D80#FFFFFF#000000##FFFFFF
##151D801.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #151d80;
/* rgb */ color: rgb(21, 29, 128);
/* oklch */ color: oklch(31.1% 0.161 269.2);
Tailwind
colors: {
  custom: {
    50: '#695aa6',
    500: '#151d80',
    950: '#000000',
  },
}
SCSS
$custom: #151d80;
$custom-light: #695aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#151d80",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 235.514,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31065,
    "c": 0.16148,
    "h": 269.2
  },
  "luminance": 0.02597
}

Semantic roles & 50–950 ramp

primary
#151D80
secondary
#B5AC3C
accent
#E139EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #151D80

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

Preview Lab → · Contrast checker → · Palette generator →

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