#152253#152253

#152253 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.091 H 268.5°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#152253
RGBrgb(21, 34, 83)
HSLhsl(227, 60%, 20%)
HSVhsv(227, 75%, 33%)
CMYKcmyk(74.7%, 59%, 0%, 67.5%)
CIE-LABlab(15.10, 13.47, -31.60)
CIE-LCHlch(15.10, 34.35, 293.09°)
OKLaboklab(27.32% -0.0023 -0.0909)
OKLCHoklch(27.32% 0.091 268.5)
XYZxyz(2.4421, 1.9278, 8.4253)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152253 #534615
analogous
#154153 #152253 #271553
triadic
#152253 #531522 #225315
tetradic
#152253 #531541 #534615 #155327
square
#152253 #531541 #534615 #155327
split-complementary
#152253 #532715 #415315
monochromatic
#060A18 #090E22 #152253 #213684 #2E4AB5

Accessibility & contrast

On white

15.16
#152253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#152253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152253
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152253#FFFFFF#000000##FFFFFF
##1522531.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012955
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#002E36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #152253;
/* rgb */ color: rgb(21, 34, 83);
/* oklch */ color: oklch(27.3% 0.091 268.5);
Tailwind
colors: {
  custom: {
    50: '#5b5c84',
    500: '#152253',
    950: '#000000',
  },
}
SCSS
$custom: #152253;
$custom-light: #5b5c84;
$custom-dark: #000000;
JSON
{
  "hex": "#152253",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 83
  },
  "hsl": {
    "h": 227.419,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27316,
    "c": 0.09092,
    "h": 268.5
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#152253
secondary
#8B7A39
accent
#C245E3
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #152253

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

Preview Lab → · Contrast checker → · Palette generator →

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