#18215A#18215A

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

Color values

HEX#18215A
RGBrgb(24, 33, 90)
HSLhsl(232, 58%, 22%)
HSVhsv(232, 73%, 35%)
CMYKcmyk(73.3%, 63.3%, 0%, 64.7%)
CIE-LABlab(15.59, 17.62, -35.51)
CIE-LCHlch(15.59, 39.64, 296.38°)
OKLaboklab(27.92% 0.0023 -0.1023)
OKLCHoklch(27.92% 0.102 271.3)
XYZxyz(2.7654, 2.0198, 9.9150)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18215A #5A5118
analogous
#18425A #18215A #30185A
triadic
#18215A #5A1821 #215A18
tetradic
#18215A #5A1842 #5A5118 #185A30
square
#18215A #5A1842 #5A5118 #185A30
split-complementary
#18215A #5A3018 #425A18
monochromatic
#060918 #0B0F2A #18215A #25338A #3244BB

Accessibility & contrast

On white

14.96
#18215A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#18215A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18215A
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18215A#FFFFFF#000000##FFFFFF
##18215A1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18215a;
/* rgb */ color: rgb(24, 33, 90);
/* oklch */ color: oklch(27.9% 0.102 271.3);
Tailwind
colors: {
  custom: {
    50: '#5f5c89',
    500: '#18215a',
    950: '#000000',
  },
}
SCSS
$custom: #18215a;
$custom-light: #5f5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#18215a",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 90
  },
  "hsl": {
    "h": 231.818,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2792,
    "c": 0.10236,
    "h": 271.3
  },
  "luminance": 0.0202
}

Semantic roles & 50–950 ramp

primary
#18215A
secondary
#91853D
accent
#CC47E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #18215A

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

Preview Lab → · Contrast checker → · Palette generator →

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