#18204D#18204D

#18204D is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.083 H 271.9°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#18204D
RGBrgb(24, 32, 77)
HSLhsl(231, 52%, 20%)
HSVhsv(231, 69%, 30%)
CMYKcmyk(68.8%, 58.4%, 0%, 69.8%)
CIE-LABlab(14.19, 13.06, -28.98)
CIE-LCHlch(14.19, 31.79, 294.26°)
OKLaboklab(26.52% 0.0028 -0.0831)
OKLCHoklch(26.52% 0.083 271.9)
XYZxyz(2.2323, 1.7628, 7.2424)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18204D #4D4518
analogous
#183B4D #18204D #2A184D
triadic
#18204D #4D1820 #204D18
tetradic
#18204D #4D183B #4D4518 #184D2A
square
#18204D #4D183B #4D4518 #184D2A
split-complementary
#18204D #4D2A18 #3B4D18
monochromatic
#070A17 #090D1E #18204D #27337C #3547AA

Accessibility & contrast

On white

15.53
#18204D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#18204D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18204D
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18204D#FFFFFF#000000##FFFFFF
##18204D1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05264F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18204d;
/* rgb */ color: rgb(24, 32, 77);
/* oklch */ color: oklch(26.5% 0.083 271.9);
Tailwind
colors: {
  custom: {
    50: '#5c5b7f',
    500: '#18204d',
    950: '#000000',
  },
}
SCSS
$custom: #18204d;
$custom-light: #5c5b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#18204d",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 77
  },
  "hsl": {
    "h": 230.943,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26524,
    "c": 0.08319,
    "h": 271.9
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#18204D
secondary
#84793D
accent
#C64CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18204D

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

Preview Lab → · Contrast checker → · Palette generator →

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