#18206C#18206C

#18206C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.130 H 271.0°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#18206C
RGBrgb(24, 32, 108)
HSLhsl(234, 64%, 26%)
HSVhsv(234, 78%, 42%)
CMYKcmyk(77.8%, 70.4%, 0%, 57.6%)
CIE-LABlab(17.03, 25.51, -45.04)
CIE-LCHlch(17.03, 51.76, 299.53°)
OKLaboklab(29.51% 0.0023 -0.1303)
OKLCHoklch(29.51% 0.13 271)
XYZxyz(3.5991, 2.3095, 14.4406)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18206C #6C6418
analogous
#184A6C #18206C #3A186C
triadic
#18206C #6C1820 #206C18
tetradic
#18206C #6C184A #6C6418 #186C3A
square
#18206C #6C184A #6C6418 #186C3A
split-complementary
#18206C #6C3A18 #4A6C18
monochromatic
#060719 #0D113A #18206C #232F9E #2E3ED0

Accessibility & contrast

On white

14.36
#18206C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18206C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18206C
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18206C#FFFFFF#000000##FFFFFF
##18206C1.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18206c;
/* rgb */ color: rgb(24, 32, 108);
/* oklch */ color: oklch(29.5% 0.130 271.0);
Tailwind
colors: {
  custom: {
    50: '#645b97',
    500: '#18206c',
    950: '#000000',
  },
}
SCSS
$custom: #18206c;
$custom-light: #645b97;
$custom-dark: #000000;
JSON
{
  "hex": "#18206c",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 108
  },
  "hsl": {
    "h": 234.286,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29512,
    "c": 0.13028,
    "h": 271
  },
  "luminance": 0.0231
}

Semantic roles & 50–950 ramp

primary
#18206C
secondary
#A2983E
accent
#D741E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18206C

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

Preview Lab → · Contrast checker → · Palette generator →

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