#151E74#151E74

#151E74 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.145 H 269.7°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#151E74
RGBrgb(21, 30, 116)
HSLhsl(234, 69%, 27%)
HSVhsv(234, 82%, 45%)
CMYKcmyk(81.9%, 74.1%, 0%, 54.5%)
CIE-LABlab(17.22, 29.64, -49.92)
CIE-LCHlch(17.22, 58.06, 300.69°)
OKLaboklab(29.86% -0.0008 -0.1446)
OKLCHoklch(29.86% 0.145 269.7)
XYZxyz(3.9248, 2.3485, 16.7661)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E74 #746B15
analogous
#154E74 #151E74 #3C1574
triadic
#151E74 #74151E #1E7415
tetradic
#151E74 #74154E #746B15 #15743C
square
#151E74 #74154E #746B15 #15743C
split-complementary
#151E74 #743C15 #4E7415
monochromatic
#05071A #0C1140 #151E74 #1E2BA8 #2B3BD9

Accessibility & contrast

On white

14.29
#151E74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#151E74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151E74
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151E74#FFFFFF#000000##FFFFFF
##151E741.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151e74;
/* rgb */ color: rgb(21, 30, 116);
/* oklch */ color: oklch(29.9% 0.145 269.7);
Tailwind
colors: {
  custom: {
    50: '#655a9d',
    500: '#151e74',
    950: '#000000',
  },
}
SCSS
$custom: #151e74;
$custom-light: #655a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#151e74",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 116
  },
  "hsl": {
    "h": 234.316,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29856,
    "c": 0.14459,
    "h": 269.7
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

primary
#151E74
secondary
#AA9F3B
accent
#DB3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #151E74

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

Preview Lab → · Contrast checker → · Palette generator →

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