#18215B#18215B

#18215B is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.104 H 271.3°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#18215B
RGBrgb(24, 33, 91)
HSLhsl(232, 58%, 23%)
HSVhsv(232, 74%, 36%)
CMYKcmyk(73.6%, 63.7%, 0%, 64.3%)
CIE-LABlab(15.68, 18.02, -36.04)
CIE-LCHlch(15.68, 40.29, 296.57°)
OKLaboklab(28.01% 0.0023 -0.1039)
OKLCHoklch(28.01% 0.104 271.3)
XYZxyz(2.8082, 2.0370, 10.1407)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18215B #5B5218
analogous
#18435B #18215B #30185B
triadic
#18215B #5B1821 #215B18
tetradic
#18215B #5B1843 #5B5218 #185B30
square
#18215B #5B1843 #5B5218 #185B30
split-complementary
#18215B #5B3018 #435B18
monochromatic
#060918 #0B0F2B #18215B #25338B #3244BC

Accessibility & contrast

On white

14.92
#18215B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18215B
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18215B#FFFFFF#000000##FFFFFF
##18215B1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18215b;
/* rgb */ color: rgb(24, 33, 91);
/* oklch */ color: oklch(28.0% 0.104 271.3);
Tailwind
colors: {
  custom: {
    50: '#5f5c8a',
    500: '#18215b',
    950: '#000000',
  },
}
SCSS
$custom: #18215b;
$custom-light: #5f5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#18215b",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 91
  },
  "hsl": {
    "h": 231.94,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28014,
    "c": 0.1039,
    "h": 271.3
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#18215B
secondary
#92863D
accent
#CD46E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #18215B

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

Preview Lab → · Contrast checker → · Palette generator →

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