#151B66#151B66

#151B66 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.129 H 271.1°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#151B66
RGBrgb(21, 27, 102)
HSLhsl(236, 66%, 24%)
HSVhsv(236, 79%, 40%)
CMYKcmyk(79.4%, 73.5%, 0%, 60%)
CIE-LABlab(14.97, 26.26, -44.51)
CIE-LCHlch(14.97, 51.68, 300.53°)
OKLaboklab(27.77% 0.0026 -0.1288)
OKLCHoklch(27.77% 0.129 271.1)
XYZxyz(3.0987, 1.9023, 12.7717)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B66 #666015
analogous
#154466 #151B66 #381566
triadic
#151B66 #66151B #1B6615
tetradic
#151B66 #661544 #666015 #156638
square
#151B66 #661544 #666015 #156638
split-complementary
#151B66 #663815 #446615
monochromatic
#050719 #0B0E33 #151B66 #1F2899 #2A36CC

Accessibility & contrast

On white

15.21
#151B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#151B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B66
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B66#FFFFFF#000000##FFFFFF
##151B661.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002265
Tritanopia (blue-blind)
#00303E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151b66;
/* rgb */ color: rgb(21, 27, 102);
/* oklch */ color: oklch(27.8% 0.129 271.1);
Tailwind
colors: {
  custom: {
    50: '#615792',
    500: '#151b66',
    950: '#000000',
  },
}
SCSS
$custom: #151b66;
$custom-light: #615792;
$custom-dark: #000000;
JSON
{
  "hex": "#151b66",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 235.556,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.27774,
    "c": 0.12884,
    "h": 271.1
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#151B66
secondary
#9D963A
accent
#DC3FE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151B66

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

Preview Lab → · Contrast checker → · Palette generator →

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