#18208F#18208F

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

Color values

HEX#18208F
RGBrgb(24, 32, 143)
HSLhsl(236, 71%, 33%)
HSVhsv(236, 83%, 56%)
CMYKcmyk(83.2%, 77.6%, 0%, 43.9%)
CIE-LABlab(20.86, 38.51, -60.98)
CIE-LCHlch(20.86, 72.12, 302.27°)
OKLaboklab(33.4% -0.0025 -0.1767)
OKLCHoklch(33.4% 0.177 269.2)
XYZxyz(5.8494, 3.2097, 26.2925)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18208F #8F8718
analogous
#185C8F #18208F #4B188F
triadic
#18208F #8F1820 #208F18
tetradic
#18208F #8F185C #8F8718 #188F4B
square
#18208F #8F185C #8F8718 #188F4B
split-complementary
#18208F #8F4B18 #5C8F18
monochromatic
#060926 #0F145B #18208F #212CC3 #424DDF

Accessibility & contrast

On white

12.79
#18208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18208F
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18208F#FFFFFF#000000##FFFFFF
##18208F1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18208f;
/* rgb */ color: rgb(24, 32, 143);
/* oklch */ color: oklch(33.4% 0.177 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d5db1',
    500: '#18208f',
    950: '#000000',
  },
}
SCSS
$custom: #18208f;
$custom-light: #6d5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#18208f",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 235.966,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33402,
    "c": 0.17671,
    "h": 269.2
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#18208F
secondary
#C0B843
accent
#E23AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #18208F

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

Preview Lab → · Contrast checker → · Palette generator →

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