#181D7D#181D7D

#181D7D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.157 H 270.6°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#181D7D
RGBrgb(24, 29, 125)
HSLhsl(237, 68%, 29%)
HSVhsv(237, 81%, 49%)
CMYKcmyk(80.8%, 76.8%, 0%, 51%)
CIE-LABlab(18.16, 33.87, -54.14)
CIE-LCHlch(18.16, 63.86, 302.03°)
OKLaboklab(30.87% 0.0015 -0.1568)
OKLCHoklch(30.87% 0.157 270.6)
XYZxyz(4.5165, 2.5531, 19.6528)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D7D #7D7818
analogous
#18507D #181D7D #46187D
triadic
#181D7D #7D181D #1D7D18
tetradic
#181D7D #7D1850 #7D7818 #187D46
square
#181D7D #7D1850 #7D7818 #187D46
split-complementary
#181D7D #7D4618 #507D18
monochromatic
#05061A #0E114A #181D7D #2229B0 #373FD9

Accessibility & contrast

On white

13.90
#181D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D7D
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D7D#FFFFFF#000000##FFFFFF
##181D7D1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181d7d;
/* rgb */ color: rgb(24, 29, 125);
/* oklch */ color: oklch(30.9% 0.157 270.6);
Tailwind
colors: {
  custom: {
    50: '#695aa4',
    500: '#181d7d',
    950: '#000000',
  },
}
SCSS
$custom: #181d7d;
$custom-light: #695aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#181d7d",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 237.03,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3087,
    "c": 0.15679,
    "h": 270.6
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#181D7D
secondary
#B2AC3F
accent
#E23DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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