#151A56#151A56

#151A56 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.107 H 272.6°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#151A56
RGBrgb(21, 26, 86)
HSLhsl(235, 61%, 21%)
HSVhsv(235, 76%, 34%)
CMYKcmyk(75.6%, 69.8%, 0%, 66.3%)
CIE-LABlab(13.05, 20.63, -36.98)
CIE-LCHlch(13.05, 42.34, 299.15°)
OKLaboklab(25.87% 0.0049 -0.1068)
OKLCHoklch(25.87% 0.107 272.6)
XYZxyz(2.3578, 1.5699, 8.9811)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A56 #565115
analogous
#153A56 #151A56 #301556
triadic
#151A56 #56151A #1A5615
tetradic
#151A56 #56153A #565115 #155630
square
#151A56 #56153A #565115 #155630
split-complementary
#151A56 #563015 #3A5615
monochromatic
#060719 #090B25 #151A56 #212987 #2D38B8

Accessibility & contrast

On white

15.98
#151A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#151A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A56
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A56#FFFFFF#000000##FFFFFF
##151A561.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.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: #151a56;
/* rgb */ color: rgb(21, 26, 86);
/* oklch */ color: oklch(25.9% 0.107 272.6);
Tailwind
colors: {
  custom: {
    50: '#5d5686',
    500: '#151a56',
    950: '#000000',
  },
}
SCSS
$custom: #151a56;
$custom-light: #5d5686;
$custom-dark: #000000;
JSON
{
  "hex": "#151a56",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 235.385,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25873,
    "c": 0.10691,
    "h": 272.6
  },
  "luminance": 0.0157
}

Semantic roles & 50–950 ramp

primary
#151A56
secondary
#8E8739
accent
#D844E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151A56

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

Preview Lab → · Contrast checker → · Palette generator →

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