#181C74#181C74

#181C74 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.146 H 271.4°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#181C74
RGBrgb(24, 28, 116)
HSLhsl(237, 66%, 27%)
HSVhsv(237, 79%, 45%)
CMYKcmyk(79.3%, 75.9%, 0%, 54.5%)
CIE-LABlab(16.92, 31.20, -50.41)
CIE-LCHlch(16.92, 59.29, 301.76°)
OKLaboklab(29.69% 0.0035 -0.1459)
OKLCHoklch(29.69% 0.146 271.4)
XYZxyz(3.9433, 2.2852, 16.7529)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C74 #747018
analogous
#184A74 #181C74 #421874
triadic
#181C74 #74181C #1C7418
tetradic
#181C74 #74184A #747018 #187442
square
#181C74 #74184A #747018 #187442
split-complementary
#181C74 #744218 #4A7418
monochromatic
#050619 #0E1041 #181C74 #2228A7 #3239D5

Accessibility & contrast

On white

14.41
#181C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C74
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C74#FFFFFF#000000##FFFFFF
##181C741.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181c74;
/* rgb */ color: rgb(24, 28, 116);
/* oklch */ color: oklch(29.7% 0.146 271.4);
Tailwind
colors: {
  custom: {
    50: '#66599d',
    500: '#181c74',
    950: '#000000',
  },
}
SCSS
$custom: #181c74;
$custom-light: #66599d;
$custom-dark: #000000;
JSON
{
  "hex": "#181c74",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 237.391,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29685,
    "c": 0.14599,
    "h": 271.4
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#181C74
secondary
#A9A53F
accent
#E13FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181C74

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

Preview Lab → · Contrast checker → · Palette generator →

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