#151B58#151B58

#151B58 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.3% C 0.109 H 272.1°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#151B58
RGBrgb(21, 27, 88)
HSLhsl(235, 61%, 21%)
HSVhsv(235, 76%, 35%)
CMYKcmyk(76.1%, 69.3%, 0%, 65.5%)
CIE-LABlab(13.52, 20.71, -37.56)
CIE-LCHlch(13.52, 42.89, 298.87°)
OKLaboklab(26.28% 0.004 -0.1085)
OKLCHoklch(26.28% 0.109 272.1)
XYZxyz(2.4621, 1.6476, 9.4189)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B58 #585215
analogous
#153D58 #151B58 #311558
triadic
#151B58 #58151B #1B5815
tetradic
#151B58 #58153D #585215 #155831
square
#151B58 #58153D #585215 #155831
split-complementary
#151B58 #583115 #3D5815
monochromatic
#060819 #090C27 #151B58 #212A89 #2D39BB

Accessibility & contrast

On white

15.79
#151B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B58
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B58#FFFFFF#000000##FFFFFF
##151B581.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151b58;
/* rgb */ color: rgb(21, 27, 88);
/* oklch */ color: oklch(26.3% 0.109 272.1);
Tailwind
colors: {
  custom: {
    50: '#5e5788',
    500: '#151b58',
    950: '#000000',
  },
}
SCSS
$custom: #151b58;
$custom-light: #5e5788;
$custom-dark: #000000;
JSON
{
  "hex": "#151b58",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 234.627,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26279,
    "c": 0.10855,
    "h": 272.1
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#151B58
secondary
#908839
accent
#D643E5
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #151B58

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

Preview Lab → · Contrast checker → · Palette generator →

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