#18204F#18204F

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

Color values

HEX#18204F
RGBrgb(24, 32, 79)
HSLhsl(231, 53%, 20%)
HSVhsv(231, 70%, 31%)
CMYKcmyk(69.6%, 59.5%, 0%, 69%)
CIE-LABlab(14.35, 13.87, -30.09)
CIE-LCHlch(14.35, 33.13, 294.76°)
OKLaboklab(26.7% 0.003 -0.0864)
OKLCHoklch(26.7% 0.086 272)
XYZxyz(2.3040, 1.7915, 7.6200)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18204F #4F4718
analogous
#183B4F #18204F #2C184F
triadic
#18204F #4F1820 #204F18
tetradic
#18204F #4F183B #4F4718 #184F2C
square
#18204F #4F183B #4F4718 #184F2C
split-complementary
#18204F #4F2C18 #3B4F18
monochromatic
#070A17 #0A0D20 #18204F #26337E #3546AD

Accessibility & contrast

On white

15.46
#18204F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18204F
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18204F#FFFFFF#000000##FFFFFF
##18204F1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022751
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18204f;
/* rgb */ color: rgb(24, 32, 79);
/* oklch */ color: oklch(26.7% 0.086 272.0);
Tailwind
colors: {
  custom: {
    50: '#5c5b81',
    500: '#18204f',
    950: '#000000',
  },
}
SCSS
$custom: #18204f;
$custom-light: #5c5b81;
$custom-dark: #000000;
JSON
{
  "hex": "#18204f",
  "rgb": {
    "r": 24,
    "g": 32,
    "b": 79
  },
  "hsl": {
    "h": 231.273,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26698,
    "c": 0.08644,
    "h": 272
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#18204F
secondary
#867B3D
accent
#C84BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C

Preview Lab

Preview with #18204F

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

Preview Lab → · Contrast checker → · Palette generator →

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