#181D6D#181D6D

#181D6D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.135 H 271.7°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#181D6D
RGBrgb(24, 29, 109)
HSLhsl(236, 64%, 26%)
HSVhsv(236, 78%, 43%)
CMYKcmyk(78%, 73.4%, 0%, 57.3%)
CIE-LABlab(16.39, 27.93, -46.75)
CIE-LCHlch(16.39, 54.46, 300.85°)
OKLaboklab(29.08% 0.004 -0.1353)
OKLCHoklch(29.08% 0.135 271.7)
XYZxyz(3.5754, 2.1767, 14.6967)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D6D #6D6818
analogous
#18476D #181D6D #3D186D
triadic
#181D6D #6D181D #1D6D18
tetradic
#181D6D #6D1847 #6D6818 #186D3D
square
#181D6D #6D1847 #6D6818 #186D3D
split-complementary
#181D6D #6D3D18 #476D18
monochromatic
#060719 #0D103B #181D6D #232A9F #2E38D1

Accessibility & contrast

On white

14.63
#181D6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181D6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D6D
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D6D#FFFFFF#000000##FFFFFF
##181D6D1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181d6d;
/* rgb */ color: rgb(24, 29, 109);
/* oklch */ color: oklch(29.1% 0.135 271.7);
Tailwind
colors: {
  custom: {
    50: '#645998',
    500: '#181d6d',
    950: '#000000',
  },
}
SCSS
$custom: #181d6d;
$custom-light: #645998;
$custom-dark: #000000;
JSON
{
  "hex": "#181d6d",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 109
  },
  "hsl": {
    "h": 236.471,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29075,
    "c": 0.13533,
    "h": 271.7
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#181D6D
secondary
#A39D3E
accent
#DD41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #181D6D

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

Preview Lab → · Contrast checker → · Palette generator →

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