#152273#152273

#152273 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.139 H 268.8°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#152273
RGBrgb(21, 34, 115)
HSLhsl(232, 69%, 27%)
HSVhsv(232, 82%, 45%)
CMYKcmyk(81.7%, 70.4%, 0%, 54.9%)
CIE-LABlab(18.10, 26.56, -47.83)
CIE-LCHlch(18.10, 54.70, 299.04°)
OKLaboklab(30.46% -0.0028 -0.1385)
OKLCHoklch(30.46% 0.139 268.8)
XYZxyz(3.9747, 2.5408, 16.4973)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152273 #736615
analogous
#155173 #152273 #371573
triadic
#152273 #731522 #227315
tetradic
#152273 #731551 #736615 #157337
square
#152273 #731551 #736615 #157337
split-complementary
#152273 #733715 #517315
monochromatic
#05081A #0C133F #152273 #1E31A7 #2A42D8

Accessibility & contrast

On white

13.92
#152273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#152273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152273
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152273#FFFFFF#000000##FFFFFF
##1522731.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152273;
/* rgb */ color: rgb(21, 34, 115);
/* oklch */ color: oklch(30.5% 0.139 268.8);
Tailwind
colors: {
  custom: {
    50: '#645d9c',
    500: '#152273',
    950: '#000000',
  },
}
SCSS
$custom: #152273;
$custom-light: #645d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#152273",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 231.702,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30463,
    "c": 0.1385,
    "h": 268.8
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#152273
secondary
#A99A3B
accent
#D43CEC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #152273

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

Preview Lab → · Contrast checker → · Palette generator →

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