#151A62#151A62

#151A62 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.2% C 0.124 H 271.7°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#151A62
RGBrgb(21, 26, 98)
HSLhsl(236, 65%, 23%)
HSVhsv(236, 79%, 38%)
CMYKcmyk(78.6%, 73.5%, 0%, 61.6%)
CIE-LABlab(14.29, 25.38, -42.99)
CIE-LCHlch(14.29, 49.92, 300.56°)
OKLaboklab(27.15% 0.0037 -0.1244)
OKLCHoklch(27.15% 0.124 271.7)
XYZxyz(2.8825, 1.7798, 11.7445)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A62 #625D15
analogous
#154062 #151A62 #361562
triadic
#151A62 #62151A #1A6215
tetradic
#151A62 #621540 #625D15 #156236
square
#151A62 #621540 #625D15 #156236
split-complementary
#151A62 #623615 #406215
monochromatic
#050719 #0A0D30 #151A62 #202794 #2B35C7

Accessibility & contrast

On white

15.49
#151A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#151A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A62
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A62#FFFFFF#000000##FFFFFF
##151A621.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002161
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #151a62;
/* rgb */ color: rgb(21, 26, 98);
/* oklch */ color: oklch(27.2% 0.124 271.7);
Tailwind
colors: {
  custom: {
    50: '#60578f',
    500: '#151a62',
    950: '#000000',
  },
}
SCSS
$custom: #151a62;
$custom-light: #60578f;
$custom-dark: #000000;
JSON
{
  "hex": "#151a62",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 236.104,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27153,
    "c": 0.12441,
    "h": 271.7
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#151A62
secondary
#99933A
accent
#DD40E8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #151A62

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

Preview Lab → · Contrast checker → · Palette generator →

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