#151E52#151E52

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

Color values

HEX#151E52
RGBrgb(21, 30, 82)
HSLhsl(231, 59%, 20%)
HSVhsv(231, 74%, 32%)
CMYKcmyk(74.4%, 63.4%, 0%, 67.8%)
CIE-LABlab(13.81, 16.05, -33.02)
CIE-LCHlch(13.81, 36.72, 295.92°)
OKLaboklab(26.32% 0.0015 -0.0951)
OKLCHoklch(26.32% 0.095 270.9)
XYZxyz(2.2960, 1.6970, 8.1876)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151E52 #524915
analogous
#153C52 #151E52 #2B1552
triadic
#151E52 #52151E #1E5215
tetradic
#151E52 #52153C #524915 #15522B
square
#151E52 #52153C #524915 #15522B
split-complementary
#151E52 #522B15 #3C5215
monochromatic
#060918 #090C21 #151E52 #213083 #2E42B3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##151E52#FFFFFF#000000##FFFFFF
##151E521.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)
#002654
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #151e52;
/* rgb */ color: rgb(21, 30, 82);
/* oklch */ color: oklch(26.3% 0.095 270.9);
Tailwind
colors: {
  custom: {
    50: '#5c5983',
    500: '#151e52',
    950: '#000000',
  },
}
SCSS
$custom: #151e52;
$custom-light: #5c5983;
$custom-dark: #000000;
JSON
{
  "hex": "#151e52",
  "rgb": {
    "r": 21,
    "g": 30,
    "b": 82
  },
  "hsl": {
    "h": 231.148,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26319,
    "c": 0.09514,
    "h": 270.9
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#151E52
secondary
#8A7E39
accent
#CB45E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #151E52

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

Preview Lab → · Contrast checker → · Palette generator →

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