#151A57#151A57

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

Color values

HEX#151A57
RGBrgb(21, 26, 87)
HSLhsl(235, 61%, 21%)
HSVhsv(235, 76%, 34%)
CMYKcmyk(75.9%, 70.1%, 0%, 65.9%)
CIE-LABlab(13.15, 21.03, -37.49)
CIE-LCHlch(13.15, 42.99, 299.29°)
OKLaboklab(25.98% 0.0049 -0.1083)
OKLCHoklch(25.98% 0.108 272.6)
XYZxyz(2.3984, 1.5861, 9.1947)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A57 #575215
analogous
#153B57 #151A57 #311557
triadic
#151A57 #57151A #1A5715
tetradic
#151A57 #57153B #575215 #155731
square
#151A57 #57153B #575215 #155731
split-complementary
#151A57 #573115 #3B5715
monochromatic
#060719 #090B26 #151A57 #212988 #2D37BA

Accessibility & contrast

On white

15.94
#151A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151A57
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A57#FFFFFF#000000##FFFFFF
##151A571.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151a57;
/* rgb */ color: rgb(21, 26, 87);
/* oklch */ color: oklch(26.0% 0.108 272.6);
Tailwind
colors: {
  custom: {
    50: '#5d5687',
    500: '#151a57',
    950: '#000000',
  },
}
SCSS
$custom: #151a57;
$custom-light: #5d5687;
$custom-dark: #000000;
JSON
{
  "hex": "#151a57",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 235.455,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25976,
    "c": 0.10841,
    "h": 272.6
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #151A57

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

Preview Lab → · Contrast checker → · Palette generator →

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