#18208E#18208E

#18208E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.175 H 269.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#18208E
RGBrgb(24, 32, 142)
HSLhsl(236, 71%, 33%)
HSVhsv(236, 83%, 56%)
CMYKcmyk(83.1%, 77.5%, 0%, 44.3%)
CIE-LABlab(20.75, 38.15, -60.55)
CIE-LCHlch(20.75, 71.57, 302.21°)
OKLaboklab(33.29% -0.0024 -0.1754)
OKLCHoklch(33.29% 0.175 269.2)
XYZxyz(5.7740, 3.1795, 25.8953)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18208E #8E8618
analogous
#185B8E #18208E #4B188E
triadic
#18208E #8E1820 #208E18
tetradic
#18208E #8E185B #8E8618 #188E4B
square
#18208E #8E185B #8E8618 #188E4B
split-complementary
#18208E #8E4B18 #5B8E18
monochromatic
#060825 #0F145A #18208E #212CC2 #414CDF

Accessibility & contrast

On white

12.84
#18208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#18208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18208E
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18208E#FFFFFF#000000##FFFFFF
##18208E1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18208e;
/* rgb */ color: rgb(24, 32, 142);
/* oklch */ color: oklch(33.3% 0.175 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d5db0',
    500: '#18208e',
    950: '#000000',
  },
}
SCSS
$custom: #18208e;
$custom-light: #6d5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#18208e",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 235.932,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33286,
    "c": 0.17546,
    "h": 269.2
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#18208E
secondary
#C0B742
accent
#E23AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #18208E

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

Preview Lab → · Contrast checker → · Palette generator →

#18208E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva