#181F73#181F73

#181F73 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.141 H 270.8°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#181F73
RGBrgb(24, 31, 115)
HSLhsl(235, 65%, 27%)
HSVhsv(235, 79%, 45%)
CMYKcmyk(79.1%, 73%, 0%, 54.9%)
CIE-LABlab(17.51, 28.88, -48.79)
CIE-LCHlch(17.51, 56.70, 300.63°)
OKLaboklab(30.08% 0.0021 -0.1412)
OKLCHoklch(30.08% 0.141 270.8)
XYZxyz(3.9601, 2.4115, 16.4731)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F73 #736C18
analogous
#184C73 #181F73 #3F1873
triadic
#181F73 #73181F #1F7318
tetradic
#181F73 #73184C #736C18 #18733F
square
#181F73 #73184C #736C18 #18733F
split-complementary
#181F73 #733F18 #4C7318
monochromatic
#050719 #0D1140 #181F73 #232DA6 #313ED4

Accessibility & contrast

On white

14.17
#181F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F73
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F73#FFFFFF#000000##FFFFFF
##181F731.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181f73;
/* rgb */ color: rgb(24, 31, 115);
/* oklch */ color: oklch(30.1% 0.141 270.8);
Tailwind
colors: {
  custom: {
    50: '#665b9c',
    500: '#181f73',
    950: '#000000',
  },
}
SCSS
$custom: #181f73;
$custom-light: #665b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#181f73",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 235.385,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3008,
    "c": 0.14123,
    "h": 270.8
  },
  "luminance": 0.02412
}

Semantic roles & 50–950 ramp

primary
#181F73
secondary
#A8A03F
accent
#DB3FE8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #181F73

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

Preview Lab → · Contrast checker → · Palette generator →

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