#151C58#151C58

#151C58 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.107 H 271.7°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#151C58
RGBrgb(21, 28, 88)
HSLhsl(234, 61%, 21%)
HSVhsv(234, 76%, 35%)
CMYKcmyk(76.1%, 68.2%, 0%, 65.5%)
CIE-LABlab(13.79, 19.99, -37.11)
CIE-LCHlch(13.79, 42.15, 298.31°)
OKLaboklab(26.48% 0.0032 -0.1071)
OKLCHoklch(26.48% 0.107 271.7)
XYZxyz(2.4854, 1.6943, 9.4267)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C58 #585115
analogous
#153E58 #151C58 #301558
triadic
#151C58 #58151C #1C5815
tetradic
#151C58 #58153E #585115 #155830
square
#151C58 #58153E #585115 #155830
split-complementary
#151C58 #583015 #3E5815
monochromatic
#060819 #090C27 #151C58 #212C89 #2D3BBB

Accessibility & contrast

On white

15.68
#151C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#151C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C58
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C58#FFFFFF#000000##FFFFFF
##151C581.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151c58;
/* rgb */ color: rgb(21, 28, 88);
/* oklch */ color: oklch(26.5% 0.107 271.7);
Tailwind
colors: {
  custom: {
    50: '#5d5888',
    500: '#151c58',
    950: '#000000',
  },
}
SCSS
$custom: #151c58;
$custom-light: #5d5888;
$custom-dark: #000000;
JSON
{
  "hex": "#151c58",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 233.731,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26482,
    "c": 0.1072,
    "h": 271.7
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#151C58
secondary
#908739
accent
#D443E5
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #151C58

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

Preview Lab → · Contrast checker → · Palette generator →

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