#18184F#18184F

#18184F is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 25.0% C 0.098 H 276.6°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#18184F
RGBrgb(24, 24, 79)
HSLhsl(240, 53%, 20%)
HSVhsv(240, 70%, 31%)
CMYKcmyk(69.6%, 69.6%, 0%, 69%)
CIE-LABlab(12.04, 19.77, -33.85)
CIE-LCHlch(12.04, 39.20, 300.29°)
OKLaboklab(24.98% 0.0113 -0.0975)
OKLCHoklch(24.98% 0.098 276.6)
XYZxyz(2.1141, 1.4118, 7.5567)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18184F #4F4F18
analogous
#18334F #18184F #33184F
triadic
#18184F #4F1818 #184F18
tetradic
#18184F #4F1833 #4F4F18 #184F33
square
#18184F #4F1833 #4F4F18 #184F33
split-complementary
#18184F #4F3318 #334F18
monochromatic
#070717 #0A0A20 #18184F #26267E #3535AD

Accessibility & contrast

On white

16.38
#18184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#18184F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18184F
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18184F#FFFFFF#000000##FFFFFF
##18184F1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#001D4E
Tritanopia (blue-blind)
#002630
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #18184f;
/* rgb */ color: rgb(24, 24, 79);
/* oklch */ color: oklch(25.0% 0.098 276.6);
Tailwind
colors: {
  custom: {
    50: '#5d5581',
    500: '#18184f',
    950: '#000000',
  },
}
SCSS
$custom: #18184f;
$custom-light: #5d5581;
$custom-dark: #000000;
JSON
{
  "hex": "#18184f",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 240,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2498,
    "c": 0.09819,
    "h": 276.6
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#18184F
secondary
#86863D
accent
#DD4BDD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05030A
muted
#79787C

Preview Lab

Preview with #18184F

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

Preview Lab → · Contrast checker → · Palette generator →

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