#151B7E#151B7E

#151B7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.161 H 269.6°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#151B7E
RGBrgb(21, 27, 126)
HSLhsl(237, 71%, 29%)
HSVhsv(237, 83%, 49%)
CMYKcmyk(83.3%, 78.6%, 0%, 50.6%)
CIE-LABlab(17.69, 35.22, -55.56)
CIE-LCHlch(17.69, 65.78, 302.37°)
OKLaboklab(30.53% -0.0011 -0.1609)
OKLCHoklch(30.53% 0.161 269.6)
XYZxyz(4.4658, 2.4491, 19.9720)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B7E #7E7815
analogous
#15507E #151B7E #44157E
triadic
#151B7E #7E151B #1B7E15
tetradic
#151B7E #7E1550 #7E7815 #157E44
square
#151B7E #7E1550 #7E7815 #157E44
split-complementary
#151B7E #7E4415 #507E15
monochromatic
#04061A #0C104A #151B7E #1E26B2 #313BDD

Accessibility & contrast

On white

14.09
#151B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#151B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B7E
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B7E#FFFFFF#000000##FFFFFF
##151B7E1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151b7e;
/* rgb */ color: rgb(21, 27, 126);
/* oklch */ color: oklch(30.5% 0.161 269.6);
Tailwind
colors: {
  custom: {
    50: '#6859a5',
    500: '#151b7e',
    950: '#000000',
  },
}
SCSS
$custom: #151b7e;
$custom-light: #6859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#151b7e",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 236.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30528,
    "c": 0.16094,
    "h": 269.6
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#151B7E
secondary
#B3AC3C
accent
#E43AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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