#151B57#151B57

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

Color values

HEX#151B57
RGBrgb(21, 27, 87)
HSLhsl(235, 61%, 21%)
HSVhsv(235, 76%, 34%)
CMYKcmyk(75.9%, 69%, 0%, 65.9%)
CIE-LABlab(13.42, 20.31, -37.05)
CIE-LCHlch(13.42, 42.25, 298.73°)
OKLaboklab(26.18% 0.004 -0.107)
OKLCHoklch(26.18% 0.107 272.2)
XYZxyz(2.4209, 1.6312, 9.2022)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B57 #575115
analogous
#153C57 #151B57 #301557
triadic
#151B57 #57151B #1B5715
tetradic
#151B57 #57153C #575115 #155730
square
#151B57 #57153C #575115 #155730
split-complementary
#151B57 #573015 #3C5715
monochromatic
#060819 #090C26 #151B57 #212A88 #2D3ABA

Accessibility & contrast

On white

15.83
#151B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#151B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B57
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B57#FFFFFF#000000##FFFFFF
##151B571.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151b57;
/* rgb */ color: rgb(21, 27, 87);
/* oklch */ color: oklch(26.2% 0.107 272.2);
Tailwind
colors: {
  custom: {
    50: '#5d5787',
    500: '#151b57',
    950: '#000000',
  },
}
SCSS
$custom: #151b57;
$custom-light: #5d5787;
$custom-dark: #000000;
JSON
{
  "hex": "#151b57",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 234.545,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26177,
    "c": 0.10706,
    "h": 272.2
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#151B57
secondary
#8F8739
accent
#D644E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #151B57

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

Preview Lab → · Contrast checker → · Palette generator →

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