#152255#152255

#152255 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.094 H 268.7°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#152255
RGBrgb(21, 34, 85)
HSLhsl(228, 60%, 21%)
HSVhsv(228, 75%, 33%)
CMYKcmyk(75.3%, 60%, 0%, 66.7%)
CIE-LABlab(15.27, 14.31, -32.68)
CIE-LCHlch(15.27, 35.68, 293.65°)
OKLaboklab(27.5% -0.0022 -0.0941)
OKLCHoklch(27.5% 0.094 268.7)
XYZxyz(2.5204, 1.9591, 8.8379)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152255 #554815
analogous
#154255 #152255 #281555
triadic
#152255 #551522 #225515
tetradic
#152255 #551542 #554815 #155528
square
#152255 #551542 #554815 #155528
split-complementary
#152255 #552815 #425515
monochromatic
#060A19 #090E24 #152255 #213686 #2D49B7

Accessibility & contrast

On white

15.09
#152255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152255
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152255#FFFFFF#000000##FFFFFF
##1522551.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #152255;
/* rgb */ color: rgb(21, 34, 85);
/* oklch */ color: oklch(27.5% 0.094 268.7);
Tailwind
colors: {
  custom: {
    50: '#5c5c85',
    500: '#152255',
    950: '#000000',
  },
}
SCSS
$custom: #152255;
$custom-light: #5c5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#152255",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 227.813,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27495,
    "c": 0.09409,
    "h": 268.7
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#152255
secondary
#8D7C39
accent
#C344E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #152255

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

Preview Lab → · Contrast checker → · Palette generator →

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