#152773#152773

#152773 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.4% C 0.132 H 267.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#152773
RGBrgb(21, 39, 115)
HSLhsl(229, 69%, 27%)
HSVhsv(229, 82%, 45%)
CMYKcmyk(81.7%, 66.1%, 0%, 54.9%)
CIE-LABlab(19.42, 23.07, -45.66)
CIE-LCHlch(19.42, 51.15, 296.80°)
OKLaboklab(31.43% -0.0058 -0.1321)
OKLCHoklch(31.43% 0.132 267.5)
XYZxyz(4.1282, 2.8478, 16.5484)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152773 #736115
analogous
#155673 #152773 #321573
triadic
#152773 #731527 #277315
tetradic
#152773 #731556 #736115 #157332
square
#152773 #731556 #736115 #157332
split-complementary
#152773 #733215 #567315
monochromatic
#05091A #0C153F #152773 #1E39A7 #2A4CD8

Accessibility & contrast

On white

13.38
#152773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#152773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152773
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152773#FFFFFF#000000##FFFFFF
##1527731.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#003B49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152773;
/* rgb */ color: rgb(21, 39, 115);
/* oklch */ color: oklch(31.4% 0.132 267.5);
Tailwind
colors: {
  custom: {
    50: '#64609c',
    500: '#152773',
    950: '#000000',
  },
}
SCSS
$custom: #152773;
$custom-light: #64609c;
$custom-dark: #000000;
JSON
{
  "hex": "#152773",
  "rgb": {
    "r": 21,
    "g": 39,
    "b": 115
  },
  "hsl": {
    "h": 228.511,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31432,
    "c": 0.13222,
    "h": 267.5
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#152773
secondary
#A9943B
accent
#CA3CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152773

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

Preview Lab → · Contrast checker → · Palette generator →

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