#181A42#181A42

#181A42 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.2% C 0.074 H 277.1°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#181A42
RGBrgb(24, 26, 66)
HSLhsl(237, 47%, 18%)
HSVhsv(237, 64%, 26%)
CMYKcmyk(63.6%, 60.6%, 0%, 74.1%)
CIE-LABlab(11.46, 13.15, -25.77)
CIE-LCHlch(11.46, 28.93, 297.04°)
OKLaboklab(24.19% 0.0092 -0.0737)
OKLCHoklch(24.19% 0.074 277.1)
XYZxyz(1.7291, 1.3262, 5.3181)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A42 #424018
analogous
#182F42 #181A42 #2B1842
triadic
#181A42 #42181A #1A4218
tetradic
#181A42 #42182F #424018 #18422B
square
#181A42 #42182F #424018 #18422B
split-complementary
#181A42 #422B18 #2F4218
monochromatic
#080916 #080916 #181A42 #282C6F #393D9C

Accessibility & contrast

On white

16.60
#181A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#181A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A42
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A42#FFFFFF#000000##FFFFFF
##181A421.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042043
Deuteranopia (green-blind)
#001D41
Tritanopia (blue-blind)
#03232B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181a42;
/* rgb */ color: rgb(24, 26, 66);
/* oklch */ color: oklch(24.2% 0.074 277.1);
Tailwind
colors: {
  custom: {
    50: '#595677',
    500: '#181a42',
    950: '#000000',
  },
}
SCSS
$custom: #181a42;
$custom-light: #595677;
$custom-dark: #000000;
JSON
{
  "hex": "#181a42",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 237.143,
    "s": 46.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24189,
    "c": 0.07433,
    "h": 277.1
  },
  "luminance": 0.01326
}

Semantic roles & 50–950 ramp

primary
#181A42
secondary
#79763D
accent
#D051D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181A42

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

Preview Lab → · Contrast checker → · Palette generator →

#181A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva