#151C61#151C61

#151C61 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.4% C 0.120 H 271.2°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#151C61
RGBrgb(21, 28, 97)
HSLhsl(234, 64%, 23%)
HSVhsv(234, 78%, 38%)
CMYKcmyk(78.4%, 71.1%, 0%, 62%)
CIE-LABlab(14.69, 23.60, -41.65)
CIE-LCHlch(14.69, 47.87, 299.54°)
OKLaboklab(27.42% 0.0025 -0.1204)
OKLCHoklch(27.42% 0.12 271.2)
XYZxyz(2.8815, 1.8527, 11.5127)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C61 #615A15
analogous
#154261 #151C61 #341561
triadic
#151C61 #61151C #1C6115
tetradic
#151C61 #611542 #615A15 #156134
square
#151C61 #611542 #615A15 #156134
split-complementary
#151C61 #613415 #426115
monochromatic
#050719 #0A0D2F #151C61 #202B93 #2B39C6

Accessibility & contrast

On white

15.32
#151C61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#151C61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C61
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C61#FFFFFF#000000##FFFFFF
##151C611.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002160
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151c61;
/* rgb */ color: rgb(21, 28, 97);
/* oklch */ color: oklch(27.4% 0.120 271.2);
Tailwind
colors: {
  custom: {
    50: '#60588f',
    500: '#151c61',
    950: '#000000',
  },
}
SCSS
$custom: #151c61;
$custom-light: #60588f;
$custom-dark: #000000;
JSON
{
  "hex": "#151c61",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 97
  },
  "hsl": {
    "h": 234.474,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27418,
    "c": 0.12048,
    "h": 271.2
  },
  "luminance": 0.01853
}

Semantic roles & 50–950 ramp

primary
#151C61
secondary
#988F3A
accent
#D840E7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #151C61

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

Preview Lab → · Contrast checker → · Palette generator →

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