#18217B#18217B

#18217B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.150 H 270.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#18217B
RGBrgb(24, 33, 123)
HSLhsl(235, 67%, 29%)
HSVhsv(235, 80%, 48%)
CMYKcmyk(80.5%, 73.2%, 0%, 51.8%)
CIE-LABlab(18.85, 30.60, -51.72)
CIE-LCHlch(18.85, 60.09, 300.61°)
OKLaboklab(31.3% 0 -0.1498)
OKLCHoklch(31.3% 0.15 270)
XYZxyz(4.4945, 2.7115, 19.0215)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18217B #7B7218
analogous
#18537B #18217B #41187B
triadic
#18217B #7B1821 #217B18
tetradic
#18217B #7B1853 #7B7218 #187B41
square
#18217B #7B1853 #7B7218 #187B41
split-complementary
#18217B #7B4118 #537B18
monochromatic
#05071A #0E1348 #18217B #222FAE #3644D8

Accessibility & contrast

On white

13.62
#18217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18217B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18217B#FFFFFF#000000##FFFFFF
##18217B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18217b;
/* rgb */ color: rgb(24, 33, 123);
/* oklch */ color: oklch(31.3% 0.150 270.0);
Tailwind
colors: {
  custom: {
    50: '#685da2',
    500: '#18217b',
    950: '#000000',
  },
}
SCSS
$custom: #18217b;
$custom-light: #685da2;
$custom-dark: #000000;
JSON
{
  "hex": "#18217b",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 234.545,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.313,
    "c": 0.14976,
    "h": 270
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#18217B
secondary
#B0A53F
accent
#DB3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18217B

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

Preview Lab → · Contrast checker → · Palette generator →

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