#18204E#18204E

#18204E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.085 H 272.0°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#18204E
RGBrgb(24, 32, 78)
HSLhsl(231, 53%, 20%)
HSVhsv(231, 69%, 31%)
CMYKcmyk(69.2%, 59%, 0%, 69.4%)
CIE-LABlab(14.27, 13.47, -29.54)
CIE-LCHlch(14.27, 32.46, 294.51°)
OKLaboklab(26.61% 0.0029 -0.0848)
OKLCHoklch(26.61% 0.085 272)
XYZxyz(2.2679, 1.7771, 7.4297)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18204E #4E4618
analogous
#183B4E #18204E #2B184E
triadic
#18204E #4E1820 #204E18
tetradic
#18204E #4E183B #4E4618 #184E2B
square
#18204E #4E183B #4E4618 #184E2B
split-complementary
#18204E #4E2B18 #3B4E18
monochromatic
#070A17 #0A0D1F #18204E #26337D #3546AC

Accessibility & contrast

On white

15.49
#18204E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#18204E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18204E
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18204E#FFFFFF#000000##FFFFFF
##18204E1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032750
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18204e;
/* rgb */ color: rgb(24, 32, 78);
/* oklch */ color: oklch(26.6% 0.085 272.0);
Tailwind
colors: {
  custom: {
    50: '#5c5b80',
    500: '#18204e',
    950: '#000000',
  },
}
SCSS
$custom: #18204e;
$custom-light: #5c5b80;
$custom-dark: #000000;
JSON
{
  "hex": "#18204e",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 78
  },
  "hsl": {
    "h": 231.111,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.26611,
    "c": 0.08482,
    "h": 272
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#18204E
secondary
#857A3D
accent
#C74BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18204E

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

Preview Lab → · Contrast checker → · Palette generator →

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