#18217C#18217C

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

Color values

HEX#18217C
RGBrgb(24, 33, 124)
HSLhsl(235, 68%, 29%)
HSVhsv(235, 81%, 49%)
CMYKcmyk(80.6%, 73.4%, 0%, 51.4%)
CIE-LABlab(18.96, 30.97, -52.18)
CIE-LCHlch(18.96, 60.68, 300.69°)
OKLaboklab(31.41% -0.0001 -0.1511)
OKLCHoklch(31.41% 0.151 270)
XYZxyz(4.5574, 2.7366, 19.3529)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18217C #7C7318
analogous
#18537C #18217C #41187C
triadic
#18217C #7C1821 #217C18
tetradic
#18217C #7C1853 #7C7318 #187C41
square
#18217C #7C1853 #7C7318 #187C41
split-complementary
#18217C #7C4118 #537C18
monochromatic
#05071A #0E1349 #18217C #222FAF #3645D8

Accessibility & contrast

On white

13.57
#18217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18217C
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18217C#FFFFFF#000000##FFFFFF
##18217C1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18217c;
/* rgb */ color: rgb(24, 33, 124);
/* oklch */ color: oklch(31.4% 0.151 270.0);
Tailwind
colors: {
  custom: {
    50: '#685da3',
    500: '#18217c',
    950: '#000000',
  },
}
SCSS
$custom: #18217c;
$custom-light: #685da3;
$custom-dark: #000000;
JSON
{
  "hex": "#18217c",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 234.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31409,
    "c": 0.1511,
    "h": 270
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#18217C
secondary
#B1A63F
accent
#DB3DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18217C

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

Preview Lab → · Contrast checker → · Palette generator →

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