#151B6C#151B6C

#151B6C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.137 H 270.7°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#151B6C
RGBrgb(21, 27, 108)
HSLhsl(236, 67%, 25%)
HSVhsv(236, 81%, 42%)
CMYKcmyk(80.6%, 75%, 0%, 57.6%)
CIE-LABlab(15.62, 28.56, -47.37)
CIE-LCHlch(15.62, 55.31, 301.09°)
OKLaboklab(28.44% 0.0017 -0.1371)
OKLCHoklch(28.44% 0.137 270.7)
XYZxyz(3.4070, 2.0256, 14.3959)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B6C #6C6615
analogous
#15466C #151B6C #3A156C
triadic
#151B6C #6C151B #1B6C15
tetradic
#151B6C #6C1546 #6C6615 #156C3A
square
#151B6C #6C1546 #6C6615 #156C3A
split-complementary
#151B6C #6C3A15 #466C15
monochromatic
#05061A #0B0E39 #151B6C #1F289F #2935D2

Accessibility & contrast

On white

14.94
#151B6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151B6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B6C
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B6C#FFFFFF#000000##FFFFFF
##151B6C1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151b6c;
/* rgb */ color: rgb(21, 27, 108);
/* oklch */ color: oklch(28.4% 0.137 270.7);
Tailwind
colors: {
  custom: {
    50: '#635897',
    500: '#151b6c',
    950: '#000000',
  },
}
SCSS
$custom: #151b6c;
$custom-light: #635897;
$custom-dark: #000000;
JSON
{
  "hex": "#151b6c",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 108
  },
  "hsl": {
    "h": 235.862,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28443,
    "c": 0.13715,
    "h": 270.7
  },
  "luminance": 0.02026
}

Semantic roles & 50–950 ramp

primary
#151B6C
secondary
#A39B3A
accent
#DE3DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #151B6C

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

Preview Lab → · Contrast checker → · Palette generator →

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