#151C74#151C74

#151C74 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.147 H 270.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#151C74
RGBrgb(21, 28, 116)
HSLhsl(236, 69%, 27%)
HSVhsv(236, 82%, 45%)
CMYKcmyk(81.9%, 75.9%, 0%, 54.5%)
CIE-LABlab(16.75, 30.93, -50.70)
CIE-LCHlch(16.75, 59.39, 301.39°)
OKLaboklab(29.52% 0.0001 -0.1468)
OKLCHoklch(29.52% 0.147 270)
XYZxyz(3.8758, 2.2505, 16.7497)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C74 #746D15
analogous
#154C74 #151C74 #3E1574
triadic
#151C74 #74151C #1C7415
tetradic
#151C74 #74154C #746D15 #15743E
square
#151C74 #74154C #746D15 #15743E
split-complementary
#151C74 #743E15 #4C7415
monochromatic
#05061A #0C0F40 #151C74 #1E29A8 #2B38D9

Accessibility & contrast

On white

14.48
#151C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#151C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C74
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C74#FFFFFF#000000##FFFFFF
##151C741.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151c74;
/* rgb */ color: rgb(21, 28, 116);
/* oklch */ color: oklch(29.5% 0.147 270.0);
Tailwind
colors: {
  custom: {
    50: '#65599d',
    500: '#151c74',
    950: '#000000',
  },
}
SCSS
$custom: #151c74;
$custom-light: #65599d;
$custom-dark: #000000;
JSON
{
  "hex": "#151c74",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 235.579,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29519,
    "c": 0.14683,
    "h": 270
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#151C74
secondary
#AAA23B
accent
#DF3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #151C74

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

Preview Lab → · Contrast checker → · Palette generator →

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