#151F74#151F74

#151F74 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.143 H 269.5°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#151F74
RGBrgb(21, 31, 116)
HSLhsl(234, 69%, 27%)
HSVhsv(234, 82%, 45%)
CMYKcmyk(81.9%, 73.3%, 0%, 54.5%)
CIE-LABlab(17.46, 28.98, -49.53)
CIE-LCHlch(17.46, 57.38, 300.33°)
OKLaboklab(30.03% -0.0013 -0.1434)
OKLCHoklch(30.03% 0.143 269.5)
XYZxyz(3.9506, 2.3999, 16.7746)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F74 #746A15
analogous
#154F74 #151F74 #3B1574
triadic
#151F74 #74151F #1F7415
tetradic
#151F74 #74154F #746A15 #15743B
square
#151F74 #74154F #746A15 #15743B
split-complementary
#151F74 #743B15 #4F7415
monochromatic
#05071A #0C1140 #151F74 #1E2DA8 #2B3DD9

Accessibility & contrast

On white

14.19
#151F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F74
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F74#FFFFFF#000000##FFFFFF
##151F741.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151f74;
/* rgb */ color: rgb(21, 31, 116);
/* oklch */ color: oklch(30.0% 0.143 269.5);
Tailwind
colors: {
  custom: {
    50: '#655b9d',
    500: '#151f74',
    950: '#000000',
  },
}
SCSS
$custom: #151f74;
$custom-light: #655b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#151f74",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 233.684,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30029,
    "c": 0.14345,
    "h": 269.5
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#151F74
secondary
#AA9E3B
accent
#DA3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #151F74

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

Preview Lab → · Contrast checker → · Palette generator →

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