#152155#152155

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

Color values

HEX#152155
RGBrgb(21, 33, 85)
HSLhsl(229, 60%, 21%)
HSVhsv(229, 75%, 33%)
CMYKcmyk(75.3%, 61.2%, 0%, 66.7%)
CIE-LABlab(14.97, 15.06, -33.17)
CIE-LCHlch(14.97, 36.43, 294.42°)
OKLaboklab(27.27% -0.0012 -0.0955)
OKLCHoklch(27.27% 0.096 269.3)
XYZxyz(2.4922, 1.9028, 8.8285)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152155 #554915
analogous
#154155 #152155 #291555
triadic
#152155 #551521 #215515
tetradic
#152155 #551541 #554915 #155529
square
#152155 #551541 #554915 #155529
split-complementary
#152155 #552915 #415515
monochromatic
#060A19 #090E24 #152155 #213486 #2D47B7

Accessibility & contrast

On white

15.21
#152155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#152155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152155
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152155#FFFFFF#000000##FFFFFF
##1521551.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.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: #152155;
/* rgb */ color: rgb(21, 33, 85);
/* oklch */ color: oklch(27.3% 0.096 269.3);
Tailwind
colors: {
  custom: {
    50: '#5c5b85',
    500: '#152155',
    950: '#000000',
  },
}
SCSS
$custom: #152155;
$custom-light: #5c5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#152155",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 228.75,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27268,
    "c": 0.09553,
    "h": 269.3
  },
  "luminance": 0.01903
}

Semantic roles & 50–950 ramp

primary
#152155
secondary
#8D7D39
accent
#C644E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #152155

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

Preview Lab → · Contrast checker → · Palette generator →

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