#181D6B#181D6B

#181D6B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.133 H 271.8°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#181D6B
RGBrgb(24, 29, 107)
HSLhsl(236, 63%, 26%)
HSVhsv(236, 78%, 42%)
CMYKcmyk(77.6%, 72.9%, 0%, 58%)
CIE-LABlab(16.18, 27.16, -45.80)
CIE-LCHlch(16.18, 53.25, 300.68°)
OKLaboklab(28.86% 0.0043 -0.1325)
OKLCHoklch(28.86% 0.133 271.8)
XYZxyz(3.4690, 2.1341, 14.1362)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D6B #6B6618
analogous
#18466B #181D6B #3C186B
triadic
#181D6B #6B181D #1D6B18
tetradic
#181D6B #6B1846 #6B6618 #186B3C
square
#181D6B #6B1846 #6B6618 #186B3C
split-complementary
#181D6B #6B3C18 #466B18
monochromatic
#060719 #0D0F39 #181D6B #232B9D #2E38CF

Accessibility & contrast

On white

14.72
#181D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D6B
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D6B#FFFFFF#000000##FFFFFF
##181D6B1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181d6b;
/* rgb */ color: rgb(24, 29, 107);
/* oklch */ color: oklch(28.9% 0.133 271.8);
Tailwind
colors: {
  custom: {
    50: '#645996',
    500: '#181d6b',
    950: '#000000',
  },
}
SCSS
$custom: #181d6b;
$custom-light: #645996;
$custom-dark: #000000;
JSON
{
  "hex": "#181d6b",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 107
  },
  "hsl": {
    "h": 236.386,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28858,
    "c": 0.13255,
    "h": 271.8
  },
  "luminance": 0.02134
}

Semantic roles & 50–950 ramp

primary
#181D6B
secondary
#A19B3E
accent
#DC41E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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