#152254#152254

#152254 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.093 H 268.6°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#152254
RGBrgb(21, 34, 84)
HSLhsl(228, 60%, 21%)
HSVhsv(228, 75%, 33%)
CMYKcmyk(75%, 59.5%, 0%, 67.1%)
CIE-LABlab(15.19, 13.89, -32.14)
CIE-LCHlch(15.19, 35.02, 293.38°)
OKLaboklab(27.41% -0.0023 -0.0925)
OKLCHoklch(27.41% 0.093 268.6)
XYZxyz(2.4810, 1.9433, 8.6301)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152254 #544715
analogous
#154154 #152254 #271554
triadic
#152254 #541522 #225415
tetradic
#152254 #541541 #544715 #155427
square
#152254 #541541 #544715 #155427
split-complementary
#152254 #542715 #415415
monochromatic
#060A18 #090E23 #152254 #213685 #2D4AB6

Accessibility & contrast

On white

15.12
#152254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152254
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152254#FFFFFF#000000##FFFFFF
##1522541.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152254;
/* rgb */ color: rgb(21, 34, 84);
/* oklch */ color: oklch(27.4% 0.093 268.6);
Tailwind
colors: {
  custom: {
    50: '#5c5c85',
    500: '#152254',
    950: '#000000',
  },
}
SCSS
$custom: #152254;
$custom-light: #5c5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#152254",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 84
  },
  "hsl": {
    "h": 227.619,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27405,
    "c": 0.09251,
    "h": 268.6
  },
  "luminance": 0.01944
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #152254

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

Preview Lab → · Contrast checker → · Palette generator →

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