#181D6C#181D6C

#181D6C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.0% C 0.134 H 271.8°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#181D6C
RGBrgb(24, 29, 108)
HSLhsl(236, 64%, 26%)
HSVhsv(236, 78%, 42%)
CMYKcmyk(77.8%, 73.1%, 0%, 57.6%)
CIE-LABlab(16.28, 27.55, -46.27)
CIE-LCHlch(16.28, 53.85, 300.76°)
OKLaboklab(28.97% 0.0041 -0.1339)
OKLCHoklch(28.97% 0.134 271.8)
XYZxyz(3.5219, 2.1553, 14.4148)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D6C #6C6718
analogous
#18476C #181D6C #3D186C
triadic
#181D6C #6C181D #1D6C18
tetradic
#181D6C #6C1847 #6C6718 #186C3D
square
#181D6C #6C1847 #6C6718 #186C3D
split-complementary
#181D6C #6C3D18 #476C18
monochromatic
#060719 #0D103A #181D6C #232A9E #2E38D0

Accessibility & contrast

On white

14.67
#181D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181D6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D6C
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D6C#FFFFFF#000000##FFFFFF
##181D6C1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181d6c;
/* rgb */ color: rgb(24, 29, 108);
/* oklch */ color: oklch(29.0% 0.134 271.8);
Tailwind
colors: {
  custom: {
    50: '#645997',
    500: '#181d6c',
    950: '#000000',
  },
}
SCSS
$custom: #181d6c;
$custom-light: #645997;
$custom-dark: #000000;
JSON
{
  "hex": "#181d6c",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 108
  },
  "hsl": {
    "h": 236.429,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28966,
    "c": 0.13394,
    "h": 271.8
  },
  "luminance": 0.02156
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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