#181840#181840

#181840 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.074 H 279.1°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#181840
RGBrgb(24, 24, 64)
HSLhsl(240, 45%, 17%)
HSVhsv(240, 63%, 25%)
CMYKcmyk(62.5%, 62.5%, 0%, 74.9%)
CIE-LABlab(10.69, 13.87, -25.60)
CIE-LCHlch(10.69, 29.12, 298.45°)
OKLaboklab(23.56% 0.0117 -0.0733)
OKLCHoklch(23.56% 0.074 279.1)
XYZxyz(1.6284, 1.2175, 4.9987)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181840 #404018
analogous
#182C40 #181840 #2C1840
triadic
#181840 #401818 #184018
tetradic
#181840 #40182C #404018 #18402C
square
#181840 #40182C #404018 #18402C
split-complementary
#181840 #402C18 #2C4018
monochromatic
#080816 #080816 #181840 #29296D #393999

Accessibility & contrast

On white

16.89
#181840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#181840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181840
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181840#FFFFFF#000000##FFFFFF
##1818401.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E41
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#052129
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #181840;
/* rgb */ color: rgb(24, 24, 64);
/* oklch */ color: oklch(23.6% 0.074 279.1);
Tailwind
colors: {
  custom: {
    50: '#595475',
    500: '#181840',
    950: '#000000',
  },
}
SCSS
$custom: #181840;
$custom-light: #595475;
$custom-dark: #000000;
JSON
{
  "hex": "#181840",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 240,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2356,
    "c": 0.07422,
    "h": 279.1
  },
  "luminance": 0.01218
}

Semantic roles & 50–950 ramp

primary
#181840
secondary
#77773D
accent
#D553D5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #181840

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

Preview Lab → · Contrast checker → · Palette generator →

#181840 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva