#181D40#181D40

#181D40 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.7% C 0.066 H 274.4°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#181D40
RGBrgb(24, 29, 64)
HSLhsl(233, 45%, 17%)
HSVhsv(233, 63%, 25%)
CMYKcmyk(62.5%, 54.7%, 0%, 74.9%)
CIE-LABlab(12.24, 10.08, -23.10)
CIE-LCHlch(12.24, 25.20, 293.57°)
OKLaboklab(24.73% 0.0051 -0.0659)
OKLCHoklch(24.73% 0.066 274.4)
XYZxyz(1.7412, 1.4430, 5.0363)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D40 #403B18
analogous
#183140 #181D40 #271840
triadic
#181D40 #40181D #1D4018
tetradic
#181D40 #401831 #403B18 #184027
square
#181D40 #401831 #403B18 #184027
split-complementary
#181D40 #402718 #314018
monochromatic
#080A16 #080A16 #181D40 #29316D #394599

Accessibility & contrast

On white

16.30
#181D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D40
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D40#FFFFFF#000000##FFFFFF
##181D401.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2241
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#04252B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181d40;
/* rgb */ color: rgb(24, 29, 64);
/* oklch */ color: oklch(24.7% 0.066 274.4);
Tailwind
colors: {
  custom: {
    50: '#595875',
    500: '#181d40',
    950: '#000000',
  },
}
SCSS
$custom: #181d40;
$custom-light: #595875;
$custom-dark: #000000;
JSON
{
  "hex": "#181d40",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 64
  },
  "hsl": {
    "h": 232.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24729,
    "c": 0.06608,
    "h": 274.4
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#181D40
secondary
#776F3D
accent
#C553D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181D40

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

Preview Lab → · Contrast checker → · Palette generator →

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