#181A40#181A40

#181A40 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.071 H 277.4°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#181A40
RGBrgb(24, 26, 64)
HSLhsl(237, 45%, 17%)
HSVhsv(237, 63%, 25%)
CMYKcmyk(62.5%, 59.4%, 0%, 74.9%)
CIE-LABlab(11.30, 12.36, -24.62)
CIE-LCHlch(11.30, 27.55, 296.66°)
OKLaboklab(24.02% 0.0091 -0.0704)
OKLCHoklch(24.02% 0.071 277.4)
XYZxyz(1.6712, 1.3030, 5.0129)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A40 #403E18
analogous
#182E40 #181A40 #2A1840
triadic
#181A40 #40181A #1A4018
tetradic
#181A40 #40182E #403E18 #18402A
square
#181A40 #40182E #403E18 #18402A
split-complementary
#181A40 #402A18 #2E4018
monochromatic
#080916 #080916 #181A40 #292C6D #393E99

Accessibility & contrast

On white

16.66
#181A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#181A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A40
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A40#FFFFFF#000000##FFFFFF
##181A401.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062041
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#05232A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181a40;
/* rgb */ color: rgb(24, 26, 64);
/* oklch */ color: oklch(24.0% 0.071 277.4);
Tailwind
colors: {
  custom: {
    50: '#595675',
    500: '#181a40',
    950: '#000000',
  },
}
SCSS
$custom: #181a40;
$custom-light: #595675;
$custom-dark: #000000;
JSON
{
  "hex": "#181a40",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 64
  },
  "hsl": {
    "h": 237,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24017,
    "c": 0.07095,
    "h": 277.4
  },
  "luminance": 0.01303
}

Semantic roles & 50–950 ramp

primary
#181A40
secondary
#77743D
accent
#CF53D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181A40

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

Preview Lab → · Contrast checker → · Palette generator →

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