#151B64#151B64

#151B64 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.6% C 0.126 H 271.3°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#151B64
RGBrgb(21, 27, 100)
HSLhsl(235, 65%, 24%)
HSVhsv(235, 79%, 39%)
CMYKcmyk(79%, 73%, 0%, 60.8%)
CIE-LABlab(14.75, 25.48, -43.55)
CIE-LCHlch(14.75, 50.45, 300.33°)
OKLaboklab(27.56% 0.0028 -0.126)
OKLCHoklch(27.56% 0.126 271.3)
XYZxyz(3.0007, 1.8631, 12.2556)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B64 #645E15
analogous
#154264 #151B64 #361564
triadic
#151B64 #64151B #1B6415
tetradic
#151B64 #641542 #645E15 #156436
square
#151B64 #641542 #645E15 #156436
split-complementary
#151B64 #643615 #426415
monochromatic
#050719 #0A0D31 #151B64 #202997 #2A36C9

Accessibility & contrast

On white

15.30
#151B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B64
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B64#FFFFFF#000000##FFFFFF
##151B641.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151b64;
/* rgb */ color: rgb(21, 27, 100);
/* oklch */ color: oklch(27.6% 0.126 271.3);
Tailwind
colors: {
  custom: {
    50: '#615791',
    500: '#151b64',
    950: '#000000',
  },
}
SCSS
$custom: #151b64;
$custom-light: #615791;
$custom-dark: #000000;
JSON
{
  "hex": "#151b64",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 235.443,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27555,
    "c": 0.12602,
    "h": 271.3
  },
  "luminance": 0.01863
}

Semantic roles & 50–950 ramp

primary
#151B64
secondary
#9B943A
accent
#DB40E8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151B64

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

Preview Lab → · Contrast checker → · Palette generator →

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