#152272#152272

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

Color values

HEX#152272
RGBrgb(21, 34, 114)
HSLhsl(232, 69%, 26%)
HSVhsv(232, 82%, 45%)
CMYKcmyk(81.6%, 70.2%, 0%, 55.3%)
CIE-LABlab(18.00, 26.16, -47.35)
CIE-LCHlch(18.00, 54.10, 298.92°)
OKLaboklab(30.36% -0.0027 -0.1371)
OKLCHoklch(30.36% 0.137 268.9)
XYZxyz(3.9175, 2.5179, 16.1959)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152272 #726515
analogous
#155172 #152272 #371572
triadic
#152272 #721522 #227215
tetradic
#152272 #721551 #726515 #157237
square
#152272 #721551 #726515 #157237
split-complementary
#152272 #723715 #517215
monochromatic
#05081A #0B133E #152272 #1F31A6 #2A42D8

Accessibility & contrast

On white

13.97
#152272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152272
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152272#FFFFFF#000000##FFFFFF
##1522721.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #152272;
/* rgb */ color: rgb(21, 34, 114);
/* oklch */ color: oklch(30.4% 0.137 268.9);
Tailwind
colors: {
  custom: {
    50: '#645d9b',
    500: '#152272',
    950: '#000000',
  },
}
SCSS
$custom: #152272;
$custom-light: #645d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#152272",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 231.613,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30357,
    "c": 0.1371,
    "h": 268.9
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#152272
secondary
#A8993B
accent
#D33CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152272

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

Preview Lab → · Contrast checker → · Palette generator →

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