#152271#152271

#152271 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.136 H 268.9°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#152271
RGBrgb(21, 34, 113)
HSLhsl(232, 69%, 26%)
HSVhsv(232, 81%, 44%)
CMYKcmyk(81.4%, 69.9%, 0%, 55.7%)
CIE-LABlab(17.90, 25.77, -46.87)
CIE-LCHlch(17.90, 53.49, 298.80°)
OKLaboklab(30.25% -0.0026 -0.1357)
OKLCHoklch(30.25% 0.136 268.9)
XYZxyz(3.8609, 2.4953, 15.8977)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152271 #716415
analogous
#155071 #152271 #361571
triadic
#152271 #711522 #227115
tetradic
#152271 #711550 #716415 #157136
square
#152271 #711550 #716415 #157136
split-complementary
#152271 #713615 #507115
monochromatic
#05081A #0B123D #152271 #1F32A5 #2942D7

Accessibility & contrast

On white

14.01
#152271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#152271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152271
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152271#FFFFFF#000000##FFFFFF
##1522711.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152271;
/* rgb */ color: rgb(21, 34, 113);
/* oklch */ color: oklch(30.3% 0.136 268.9);
Tailwind
colors: {
  custom: {
    50: '#645d9b',
    500: '#152271',
    950: '#000000',
  },
}
SCSS
$custom: #152271;
$custom-light: #645d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#152271",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 231.522,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30251,
    "c": 0.13571,
    "h": 268.9
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#152271
secondary
#A7983B
accent
#D33CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152271

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

Preview Lab → · Contrast checker → · Palette generator →

#152271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva