#181D74#181D74

#181D74 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.145 H 271.2°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#181D74
RGBrgb(24, 29, 116)
HSLhsl(237, 66%, 27%)
HSVhsv(237, 79%, 45%)
CMYKcmyk(79.3%, 75%, 0%, 54.5%)
CIE-LABlab(17.15, 30.57, -50.04)
CIE-LCHlch(17.15, 58.63, 301.42°)
OKLaboklab(29.85% 0.003 -0.1448)
OKLCHoklch(29.85% 0.145 271.2)
XYZxyz(3.9674, 2.3334, 16.7609)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D74 #746F18
analogous
#184B74 #181D74 #411874
triadic
#181D74 #74181D #1D7418
tetradic
#181D74 #74184B #746F18 #187441
square
#181D74 #74184B #746F18 #187441
split-complementary
#181D74 #744118 #4B7418
monochromatic
#050619 #0E1041 #181D74 #222AA7 #323BD5

Accessibility & contrast

On white

14.32
#181D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D74
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D74#FFFFFF#000000##FFFFFF
##181D741.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181d74;
/* rgb */ color: rgb(24, 29, 116);
/* oklch */ color: oklch(29.8% 0.145 271.2);
Tailwind
colors: {
  custom: {
    50: '#665a9d',
    500: '#181d74',
    950: '#000000',
  },
}
SCSS
$custom: #181d74;
$custom-light: #665a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#181d74",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 236.739,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29849,
    "c": 0.14488,
    "h": 271.2
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#181D74
secondary
#A9A33F
accent
#DF3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181D74

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

Preview Lab → · Contrast checker → · Palette generator →

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