#181D7A#181D7A

#181D7A is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.153 H 270.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#181D7A
RGBrgb(24, 29, 122)
HSLhsl(237, 67%, 29%)
HSVhsv(237, 80%, 48%)
CMYKcmyk(80.3%, 76.2%, 0%, 52.2%)
CIE-LABlab(17.82, 32.78, -52.78)
CIE-LCHlch(17.82, 62.13, 301.84°)
OKLaboklab(30.53% 0.002 -0.1529)
OKLCHoklch(30.53% 0.153 270.8)
XYZxyz(4.3277, 2.4776, 18.6587)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D7A #7A7518
analogous
#184E7A #181D7A #44187A
triadic
#181D7A #7A181D #1D7A18
tetradic
#181D7A #7A184E #7A7518 #187A44
square
#181D7A #7A184E #7A7518 #187A44
split-complementary
#181D7A #7A4418 #4E7A18
monochromatic
#05061A #0E1147 #181D7A #2229AD #353DD7

Accessibility & contrast

On white

14.04
#181D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D7A
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D7A#FFFFFF#000000##FFFFFF
##181D7A1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181d7a;
/* rgb */ color: rgb(24, 29, 122);
/* oklch */ color: oklch(30.5% 0.153 270.8);
Tailwind
colors: {
  custom: {
    50: '#685aa2',
    500: '#181d7a',
    950: '#000000',
  },
}
SCSS
$custom: #181d7a;
$custom-light: #685aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#181d7a",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 236.939,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30527,
    "c": 0.15286,
    "h": 270.8
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#181D7A
secondary
#AFA93F
accent
#E13EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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