#18217F#18217F

#18217F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.155 H 269.8°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#18217F
RGBrgb(24, 33, 127)
HSLhsl(235, 68%, 30%)
HSVhsv(235, 81%, 50%)
CMYKcmyk(81.1%, 74%, 0%, 50.2%)
CIE-LABlab(19.28, 32.09, -53.55)
CIE-LCHlch(19.28, 62.43, 300.94°)
OKLaboklab(31.74% -0.0005 -0.1551)
OKLCHoklch(31.74% 0.155 269.8)
XYZxyz(4.7500, 2.8137, 20.3673)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18217F #7F7618
analogous
#18557F #18217F #42187F
triadic
#18217F #7F1821 #217F18
tetradic
#18217F #7F1855 #7F7618 #187F42
square
#18217F #7F1855 #7F7618 #187F42
split-complementary
#18217F #7F4218 #557F18
monochromatic
#05071A #0E144C #18217F #222EB2 #3846D9

Accessibility & contrast

On white

13.44
#18217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18217F
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18217F#FFFFFF#000000##FFFFFF
##18217F1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18217f;
/* rgb */ color: rgb(24, 33, 127);
/* oklch */ color: oklch(31.7% 0.155 269.8);
Tailwind
colors: {
  custom: {
    50: '#695da5',
    500: '#18217f',
    950: '#000000',
  },
}
SCSS
$custom: #18217f;
$custom-light: #695da5;
$custom-dark: #000000;
JSON
{
  "hex": "#18217f",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 234.757,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3174,
    "c": 0.1551,
    "h": 269.8
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18217F

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

Preview Lab → · Contrast checker → · Palette generator →

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