#152270#152270

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

Color values

HEX#152270
RGBrgb(21, 34, 112)
HSLhsl(231, 68%, 26%)
HSVhsv(231, 81%, 44%)
CMYKcmyk(81.2%, 69.6%, 0%, 56.1%)
CIE-LABlab(17.80, 25.37, -46.39)
CIE-LCHlch(17.80, 52.88, 298.68°)
OKLaboklab(30.15% -0.0026 -0.1343)
OKLCHoklch(30.15% 0.134 268.9)
XYZxyz(3.8049, 2.4729, 15.6029)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152270 #706315
analogous
#154F70 #152270 #351570
triadic
#152270 #701522 #227015
tetradic
#152270 #70154F #706315 #157035
square
#152270 #70154F #706315 #157035
split-complementary
#152270 #703515 #4F7015
monochromatic
#05081A #0B123C #152270 #1F32A4 #2941D7

Accessibility & contrast

On white

14.05
#152270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#152270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152270
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152270#FFFFFF#000000##FFFFFF
##1522701.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003745
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152270;
/* rgb */ color: rgb(21, 34, 112);
/* oklch */ color: oklch(30.1% 0.134 268.9);
Tailwind
colors: {
  custom: {
    50: '#645d9a',
    500: '#152270',
    950: '#000000',
  },
}
SCSS
$custom: #152270;
$custom-light: #645d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#152270",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 231.429,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30146,
    "c": 0.1343,
    "h": 268.9
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#152270
secondary
#A6973B
accent
#D23DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152270

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

Preview Lab → · Contrast checker → · Palette generator →

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