#18215E#18215E

#18215E is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.108 H 271.2°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#18215E
RGBrgb(24, 33, 94)
HSLhsl(232, 59%, 23%)
HSVhsv(232, 74%, 37%)
CMYKcmyk(74.5%, 64.9%, 0%, 63.1%)
CIE-LABlab(15.95, 19.24, -37.59)
CIE-LCHlch(15.95, 42.23, 297.10°)
OKLaboklab(28.3% 0.0023 -0.1084)
OKLCHoklch(28.3% 0.108 271.2)
XYZxyz(2.9402, 2.0898, 10.8359)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18215E #5E5518
analogous
#18445E #18215E #32185E
triadic
#18215E #5E1821 #215E18
tetradic
#18215E #5E1844 #5E5518 #185E32
square
#18215E #5E1844 #5E5518 #185E32
split-complementary
#18215E #5E3218 #445E18
monochromatic
#060918 #0C102D #18215E #24328F #3143C0

Accessibility & contrast

On white

14.81
#18215E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#18215E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18215E
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18215E#FFFFFF#000000##FFFFFF
##18215E1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18215e;
/* rgb */ color: rgb(24, 33, 94);
/* oklch */ color: oklch(28.3% 0.108 271.2);
Tailwind
colors: {
  custom: {
    50: '#605c8c',
    500: '#18215e',
    950: '#000000',
  },
}
SCSS
$custom: #18215e;
$custom-light: #605c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#18215e",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 94
  },
  "hsl": {
    "h": 232.286,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.283,
    "c": 0.10846,
    "h": 271.2
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#18215E
secondary
#94893D
accent
#CE45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #18215E

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

Preview Lab → · Contrast checker → · Palette generator →

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