#18184E#18184E

#18184E is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.097 H 276.8°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#18184E
RGBrgb(24, 24, 78)
HSLhsl(240, 53%, 20%)
HSVhsv(240, 69%, 31%)
CMYKcmyk(69.2%, 69.2%, 0%, 69.4%)
CIE-LABlab(11.94, 19.38, -33.32)
CIE-LCHlch(11.94, 38.55, 300.18°)
OKLaboklab(24.88% 0.0114 -0.096)
OKLCHoklch(24.88% 0.097 276.8)
XYZxyz(2.0780, 1.3973, 7.3665)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18184E #4E4E18
analogous
#18334E #18184E #33184E
triadic
#18184E #4E1818 #184E18
tetradic
#18184E #4E1833 #4E4E18 #184E33
square
#18184E #4E1833 #4E4E18 #184E33
split-complementary
#18184E #4E3318 #334E18
monochromatic
#070717 #0A0A1F #18184E #26267D #3535AC

Accessibility & contrast

On white

16.41
#18184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18184E
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18184E#FFFFFF#000000##FFFFFF
##18184E1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#002630
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #18184e;
/* rgb */ color: rgb(24, 24, 78);
/* oklch */ color: oklch(24.9% 0.097 276.8);
Tailwind
colors: {
  custom: {
    50: '#5d5580',
    500: '#18184e',
    950: '#000000',
  },
}
SCSS
$custom: #18184e;
$custom-light: #5d5580;
$custom-dark: #000000;
JSON
{
  "hex": "#18184e",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 240,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.2488,
    "c": 0.09666,
    "h": 276.8
  },
  "luminance": 0.01398
}

Semantic roles & 50–950 ramp

primary
#18184E
secondary
#85853D
accent
#DC4BDC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #18184E

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

Preview Lab → · Contrast checker → · Palette generator →

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