#18217D#18217D

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

Color values

HEX#18217D
RGBrgb(24, 33, 125)
HSLhsl(235, 68%, 29%)
HSVhsv(235, 81%, 49%)
CMYKcmyk(80.8%, 73.6%, 0%, 51%)
CIE-LABlab(19.06, 31.35, -52.64)
CIE-LCHlch(19.06, 61.26, 300.77°)
OKLaboklab(31.52% -0.0002 -0.1524)
OKLCHoklch(31.52% 0.152 269.9)
XYZxyz(4.6209, 2.7621, 19.6876)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18217D #7D7418
analogous
#18547D #18217D #41187D
triadic
#18217D #7D1821 #217D18
tetradic
#18217D #7D1854 #7D7418 #187D41
square
#18217D #7D1854 #7D7418 #187D41
split-complementary
#18217D #7D4118 #547D18
monochromatic
#05071A #0E134A #18217D #222FB0 #3745D9

Accessibility & contrast

On white

13.53
#18217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18217D
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18217D#FFFFFF#000000##FFFFFF
##18217D1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18217d;
/* rgb */ color: rgb(24, 33, 125);
/* oklch */ color: oklch(31.5% 0.152 269.9);
Tailwind
colors: {
  custom: {
    50: '#685da4',
    500: '#18217d',
    950: '#000000',
  },
}
SCSS
$custom: #18217d;
$custom-light: #685da4;
$custom-dark: #000000;
JSON
{
  "hex": "#18217d",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 234.653,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31519,
    "c": 0.15244,
    "h": 269.9
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#18217D
secondary
#B2A73F
accent
#DB3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18217D

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

Preview Lab → · Contrast checker → · Palette generator →

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