#181D6A#181D6A

#181D6A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.131 H 271.9°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#181D6A
RGBrgb(24, 29, 106)
HSLhsl(236, 63%, 25%)
HSVhsv(236, 77%, 42%)
CMYKcmyk(77.4%, 72.6%, 0%, 58.4%)
CIE-LABlab(16.07, 26.78, -45.32)
CIE-LCHlch(16.07, 52.64, 300.58°)
OKLaboklab(28.75% 0.0044 -0.1311)
OKLCHoklch(28.75% 0.131 271.9)
XYZxyz(3.4167, 2.1132, 13.8607)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D6A #6A6518
analogous
#18466A #181D6A #3C186A
triadic
#181D6A #6A181D #1D6A18
tetradic
#181D6A #6A1846 #6A6518 #186A3C
square
#181D6A #6A1846 #6A6518 #186A3C
split-complementary
#181D6A #6A3C18 #466A18
monochromatic
#060719 #0D0F38 #181D6A #232B9C #2F38CE

Accessibility & contrast

On white

14.76
#181D6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181D6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D6A
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D6A#FFFFFF#000000##FFFFFF
##181D6A1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181d6a;
/* rgb */ color: rgb(24, 29, 106);
/* oklch */ color: oklch(28.7% 0.131 271.9);
Tailwind
colors: {
  custom: {
    50: '#635995',
    500: '#181d6a',
    950: '#000000',
  },
}
SCSS
$custom: #181d6a;
$custom-light: #635995;
$custom-dark: #000000;
JSON
{
  "hex": "#181d6a",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 106
  },
  "hsl": {
    "h": 236.341,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2875,
    "c": 0.13115,
    "h": 271.9
  },
  "luminance": 0.02114
}

Semantic roles & 50–950 ramp

primary
#181D6A
secondary
#A09A3E
accent
#DC42E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181D6A

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

Preview Lab → · Contrast checker → · Palette generator →

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