#18217A#18217A

#18217A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.148 H 270.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#18217A
RGBrgb(24, 33, 122)
HSLhsl(234, 67%, 29%)
HSVhsv(234, 80%, 48%)
CMYKcmyk(80.3%, 73%, 0%, 52.2%)
CIE-LABlab(18.74, 30.22, -51.26)
CIE-LCHlch(18.74, 59.50, 300.52°)
OKLaboklab(31.19% 0.0001 -0.1484)
OKLCHoklch(31.19% 0.148 270.1)
XYZxyz(4.4322, 2.6866, 18.6935)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18217A #7A7118
analogous
#18527A #18217A #40187A
triadic
#18217A #7A1821 #217A18
tetradic
#18217A #7A1852 #7A7118 #187A40
square
#18217A #7A1852 #7A7118 #187A40
split-complementary
#18217A #7A4018 #527A18
monochromatic
#05071A #0E1347 #18217A #222FAD #3544D7

Accessibility & contrast

On white

13.66
#18217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18217A
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18217A#FFFFFF#000000##FFFFFF
##18217A1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18217a;
/* rgb */ color: rgb(24, 33, 122);
/* oklch */ color: oklch(31.2% 0.148 270.1);
Tailwind
colors: {
  custom: {
    50: '#675ca1',
    500: '#18217a',
    950: '#000000',
  },
}
SCSS
$custom: #18217a;
$custom-light: #675ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#18217a",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 234.49,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3119,
    "c": 0.14842,
    "h": 270.1
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#18217A
secondary
#AFA53F
accent
#DA3EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #18217A

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

Preview Lab → · Contrast checker → · Palette generator →

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