#151C72#151C72

#151C72 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.144 H 270.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#151C72
RGBrgb(21, 28, 114)
HSLhsl(235, 69%, 26%)
HSVhsv(235, 82%, 45%)
CMYKcmyk(81.6%, 75.4%, 0%, 55.3%)
CIE-LABlab(16.53, 30.18, -49.78)
CIE-LCHlch(16.53, 58.21, 301.23°)
OKLaboklab(29.29% 0.0004 -0.1442)
OKLCHoklch(29.29% 0.144 270.2)
XYZxyz(3.7607, 2.2044, 16.1436)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C72 #726B15
analogous
#154B72 #151C72 #3D1572
triadic
#151C72 #72151C #1C7215
tetradic
#151C72 #72154B #726B15 #15723D
square
#151C72 #72154B #726B15 #15723D
split-complementary
#151C72 #723D15 #4B7215
monochromatic
#05061A #0B0F3E #151C72 #1F29A6 #2A37D8

Accessibility & contrast

On white

14.57
#151C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#151C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C72
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C72#FFFFFF#000000##FFFFFF
##151C721.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #151c72;
/* rgb */ color: rgb(21, 28, 114);
/* oklch */ color: oklch(29.3% 0.144 270.2);
Tailwind
colors: {
  custom: {
    50: '#65599c',
    500: '#151c72',
    950: '#000000',
  },
}
SCSS
$custom: #151c72;
$custom-light: #65599c;
$custom-dark: #000000;
JSON
{
  "hex": "#151c72",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 235.484,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29291,
    "c": 0.14416,
    "h": 270.2
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #151C72

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

Preview Lab → · Contrast checker → · Palette generator →

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