#152573#152573

#152573 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.135 H 268.1°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#152573
RGBrgb(21, 37, 115)
HSLhsl(230, 69%, 27%)
HSVhsv(230, 82%, 45%)
CMYKcmyk(81.7%, 67.8%, 0%, 54.9%)
CIE-LABlab(18.89, 24.48, -46.54)
CIE-LCHlch(18.89, 52.58, 297.74°)
OKLaboklab(31.04% -0.0045 -0.1347)
OKLCHoklch(31.04% 0.135 268.1)
XYZxyz(4.0643, 2.7199, 16.5271)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152573 #736315
analogous
#155473 #152573 #341573
triadic
#152573 #731525 #257315
tetradic
#152573 #731554 #736315 #157334
square
#152573 #731554 #736315 #157334
split-complementary
#152573 #733415 #547315
monochromatic
#05081A #0C143F #152573 #1E36A7 #2A48D8

Accessibility & contrast

On white

13.60
#152573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#152573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152573
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152573#FFFFFF#000000##FFFFFF
##1525731.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152573;
/* rgb */ color: rgb(21, 37, 115);
/* oklch */ color: oklch(31.0% 0.135 268.1);
Tailwind
colors: {
  custom: {
    50: '#645f9c',
    500: '#152573',
    950: '#000000',
  },
}
SCSS
$custom: #152573;
$custom-light: #645f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#152573",
  "rgb": {
    "r": 21,
    "g": 37,
    "b": 115
  },
  "hsl": {
    "h": 229.787,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31036,
    "c": 0.13477,
    "h": 268.1
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#152573
secondary
#A9963B
accent
#CE3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152573

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

Preview Lab → · Contrast checker → · Palette generator →

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