#151B6A#151B6A

#151B6A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.2% C 0.134 H 270.9°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#151B6A
RGBrgb(21, 27, 106)
HSLhsl(236, 67%, 25%)
HSVhsv(236, 80%, 42%)
CMYKcmyk(80.2%, 74.5%, 0%, 58.4%)
CIE-LABlab(15.40, 27.80, -46.42)
CIE-LCHlch(15.40, 54.11, 300.91°)
OKLaboklab(28.22% 0.002 -0.1344)
OKLCHoklch(28.22% 0.134 270.9)
XYZxyz(3.3018, 1.9835, 13.8417)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B6A #6A6415
analogous
#15456A #151B6A #3A156A
triadic
#151B6A #6A151B #1B6A15
tetradic
#151B6A #6A1545 #6A6415 #156A3A
square
#151B6A #6A1545 #6A6415 #156A3A
split-complementary
#151B6A #6A3A15 #456A15
monochromatic
#05071A #0B0E37 #151B6A #1F289D #2935D0

Accessibility & contrast

On white

15.03
#151B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#151B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B6A
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B6A#FFFFFF#000000##FFFFFF
##151B6A1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151b6a;
/* rgb */ color: rgb(21, 27, 106);
/* oklch */ color: oklch(28.2% 0.134 270.9);
Tailwind
colors: {
  custom: {
    50: '#635896',
    500: '#151b6a',
    950: '#000000',
  },
}
SCSS
$custom: #151b6a;
$custom-light: #635896;
$custom-dark: #000000;
JSON
{
  "hex": "#151b6a",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 235.765,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28218,
    "c": 0.13441,
    "h": 270.9
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#151B6A
secondary
#A1993A
accent
#DE3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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