#151B67#151B67

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

Color values

HEX#151B67
RGBrgb(21, 27, 103)
HSLhsl(236, 66%, 24%)
HSVhsv(236, 80%, 40%)
CMYKcmyk(79.6%, 73.8%, 0%, 59.6%)
CIE-LABlab(15.07, 26.64, -44.99)
CIE-LCHlch(15.07, 52.29, 300.63°)
OKLaboklab(27.89% 0.0024 -0.1302)
OKLCHoklch(27.89% 0.13 271.1)
XYZxyz(3.1485, 1.9222, 13.0344)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B67 #676115
analogous
#154467 #151B67 #381567
triadic
#151B67 #67151B #1B6715
tetradic
#151B67 #671544 #676115 #156738
square
#151B67 #671544 #676115 #156738
split-complementary
#151B67 #673815 #446715
monochromatic
#050719 #0B0E34 #151B67 #1F289A #2A36CD

Accessibility & contrast

On white

15.17
#151B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B67
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B67#FFFFFF#000000##FFFFFF
##151B671.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002266
Tritanopia (blue-blind)
#00303E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #151b67;
/* rgb */ color: rgb(21, 27, 103);
/* oklch */ color: oklch(27.9% 0.130 271.1);
Tailwind
colors: {
  custom: {
    50: '#625793',
    500: '#151b67',
    950: '#000000',
  },
}
SCSS
$custom: #151b67;
$custom-light: #625793;
$custom-dark: #000000;
JSON
{
  "hex": "#151b67",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 235.61,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27885,
    "c": 0.13024,
    "h": 271.1
  },
  "luminance": 0.01923
}

Semantic roles & 50–950 ramp

primary
#151B67
secondary
#9E973A
accent
#DD3FE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151B67

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

Preview Lab → · Contrast checker → · Palette generator →

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