#151A64#151A64

#151A64 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.4% C 0.127 H 271.5°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#151A64
RGBrgb(21, 26, 100)
HSLhsl(236, 65%, 24%)
HSVhsv(236, 79%, 39%)
CMYKcmyk(79%, 74%, 0%, 60.8%)
CIE-LABlab(14.50, 26.16, -43.96)
CIE-LCHlch(14.50, 51.15, 300.76°)
OKLaboklab(27.37% 0.0034 -0.1272)
OKLCHoklch(27.37% 0.127 271.5)
XYZxyz(2.9781, 1.8180, 12.2481)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A64 #645F15
analogous
#154164 #151A64 #371564
triadic
#151A64 #64151A #1A6415
tetradic
#151A64 #641541 #645F15 #156437
square
#151A64 #641541 #645F15 #156437
split-complementary
#151A64 #643715 #416415
monochromatic
#050719 #0A0D31 #151A64 #202797 #2A34C9

Accessibility & contrast

On white

15.40
#151A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151A64
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A64#FFFFFF#000000##FFFFFF
##151A641.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002163
Tritanopia (blue-blind)
#002E3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151a64;
/* rgb */ color: rgb(21, 26, 100);
/* oklch */ color: oklch(27.4% 0.127 271.5);
Tailwind
colors: {
  custom: {
    50: '#615791',
    500: '#151a64',
    950: '#000000',
  },
}
SCSS
$custom: #151a64;
$custom-light: #615791;
$custom-dark: #000000;
JSON
{
  "hex": "#151a64",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 100
  },
  "hsl": {
    "h": 236.203,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27374,
    "c": 0.12724,
    "h": 271.5
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#151A64
secondary
#9B953A
accent
#DE40E8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151A64

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

Preview Lab → · Contrast checker → · Palette generator →

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