#181841#181841

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

Color values

HEX#181841
RGBrgb(24, 24, 65)
HSLhsl(240, 46%, 17%)
HSVhsv(240, 63%, 25%)
CMYKcmyk(63.1%, 63.1%, 0%, 74.5%)
CIE-LABlab(10.77, 14.27, -26.17)
CIE-LCHlch(10.77, 29.81, 298.59°)
OKLaboklab(23.65% 0.0117 -0.075)
OKLCHoklch(23.65% 0.076 278.9)
XYZxyz(1.6572, 1.2290, 5.1499)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181841 #414118
analogous
#182D41 #181841 #2D1841
triadic
#181841 #411818 #184118
tetradic
#181841 #41182D #414118 #18412D
square
#181841 #41182D #414118 #18412D
split-complementary
#181841 #412D18 #2D4118
monochromatic
#080816 #080816 #181841 #29296E #39399A

Accessibility & contrast

On white

16.86
#181841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#181841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181841
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181841#FFFFFF#000000##FFFFFF
##1818411.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011F42
Deuteranopia (green-blind)
#001B40
Tritanopia (blue-blind)
#042129
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #181841;
/* rgb */ color: rgb(24, 24, 65);
/* oklch */ color: oklch(23.6% 0.076 278.9);
Tailwind
colors: {
  custom: {
    50: '#595476',
    500: '#181841',
    950: '#000000',
  },
}
SCSS
$custom: #181841;
$custom-light: #595476;
$custom-dark: #000000;
JSON
{
  "hex": "#181841",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 65
  },
  "hsl": {
    "h": 240,
    "s": 46.067,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23649,
    "c": 0.07588,
    "h": 278.9
  },
  "luminance": 0.01229
}

Semantic roles & 50–950 ramp

primary
#181841
secondary
#78783D
accent
#D652D6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #181841

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

Preview Lab → · Contrast checker → · Palette generator →

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