#18217E#18217E

#18217E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.154 H 269.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#18217E
RGBrgb(24, 33, 126)
HSLhsl(235, 68%, 29%)
HSVhsv(235, 81%, 49%)
CMYKcmyk(81%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.17, 31.72, -53.10)
CIE-LCHlch(19.17, 61.85, 300.86°)
OKLaboklab(31.63% -0.0004 -0.1538)
OKLCHoklch(31.63% 0.154 269.9)
XYZxyz(4.6852, 2.7877, 20.0258)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18217E #7E7518
analogous
#18547E #18217E #42187E
triadic
#18217E #7E1821 #217E18
tetradic
#18217E #7E1854 #7E7518 #187E42
square
#18217E #7E1854 #7E7518 #187E42
split-complementary
#18217E #7E4218 #547E18
monochromatic
#05071A #0E144B #18217E #222EB1 #3746D9

Accessibility & contrast

On white

13.48
#18217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#18217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18217E
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18217E#FFFFFF#000000##FFFFFF
##18217E1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18217e;
/* rgb */ color: rgb(24, 33, 126);
/* oklch */ color: oklch(31.6% 0.154 269.9);
Tailwind
colors: {
  custom: {
    50: '#695da4',
    500: '#18217e',
    950: '#000000',
  },
}
SCSS
$custom: #18217e;
$custom-light: #695da4;
$custom-dark: #000000;
JSON
{
  "hex": "#18217e",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 234.706,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31629,
    "c": 0.15377,
    "h": 269.9
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#18217E
secondary
#B2A83F
accent
#DC3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18217E

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

Preview Lab → · Contrast checker → · Palette generator →

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