#151B56#151B56

#151B56 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.106 H 272.2°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#151B56
RGBrgb(21, 27, 86)
HSLhsl(234, 61%, 21%)
HSVhsv(234, 76%, 34%)
CMYKcmyk(75.6%, 68.6%, 0%, 66.3%)
CIE-LABlab(13.32, 19.90, -36.53)
CIE-LCHlch(13.32, 41.60, 298.58°)
OKLaboklab(26.07% 0.0041 -0.1055)
OKLCHoklch(26.07% 0.106 272.2)
XYZxyz(2.3803, 1.6150, 8.9886)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B56 #565015
analogous
#153B56 #151B56 #2F1556
triadic
#151B56 #56151B #1B5615
tetradic
#151B56 #56153B #565015 #15562F
square
#151B56 #56153B #565015 #15562F
split-complementary
#151B56 #562F15 #3B5615
monochromatic
#060819 #090C25 #151B56 #212A87 #2D3AB8

Accessibility & contrast

On white

15.87
#151B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#151B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B56
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B56#FFFFFF#000000##FFFFFF
##151B561.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #151b56;
/* rgb */ color: rgb(21, 27, 86);
/* oklch */ color: oklch(26.1% 0.106 272.2);
Tailwind
colors: {
  custom: {
    50: '#5d5786',
    500: '#151b56',
    950: '#000000',
  },
}
SCSS
$custom: #151b56;
$custom-light: #5d5786;
$custom-dark: #000000;
JSON
{
  "hex": "#151b56",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 234.462,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26074,
    "c": 0.10555,
    "h": 272.2
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#151B56
secondary
#8E8639
accent
#D544E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151B56

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

Preview Lab → · Contrast checker → · Palette generator →

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