#18215C#18215C

#18215C is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.105 H 271.3°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#18215C
RGBrgb(24, 33, 92)
HSLhsl(232, 59%, 23%)
HSVhsv(232, 74%, 36%)
CMYKcmyk(73.9%, 64.1%, 0%, 63.9%)
CIE-LABlab(15.77, 18.43, -36.56)
CIE-LCHlch(15.77, 40.94, 296.75°)
OKLaboklab(28.11% 0.0023 -0.1054)
OKLCHoklch(28.11% 0.105 271.3)
XYZxyz(2.8517, 2.0543, 10.3694)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18215C #5C5318
analogous
#18435C #18215C #31185C
triadic
#18215C #5C1821 #215C18
tetradic
#18215C #5C1843 #5C5318 #185C31
square
#18215C #5C1843 #5C5318 #185C31
split-complementary
#18215C #5C3118 #435C18
monochromatic
#060918 #0B102B #18215C #25328D #3144BD

Accessibility & contrast

On white

14.88
#18215C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#18215C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18215C
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18215C#FFFFFF#000000##FFFFFF
##18215C1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18215c;
/* rgb */ color: rgb(24, 33, 92);
/* oklch */ color: oklch(28.1% 0.105 271.3);
Tailwind
colors: {
  custom: {
    50: '#5f5c8b',
    500: '#18215c',
    950: '#000000',
  },
}
SCSS
$custom: #18215c;
$custom-light: #5f5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#18215c",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 92
  },
  "hsl": {
    "h": 232.059,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28109,
    "c": 0.10543,
    "h": 271.3
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#18215C
secondary
#93873D
accent
#CD46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18215C

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

Preview Lab → · Contrast checker → · Palette generator →

#18215C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva