#181F76#181F76

#181F76 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.145 H 270.7°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#181F76
RGBrgb(24, 31, 118)
HSLhsl(236, 66%, 28%)
HSVhsv(236, 80%, 46%)
CMYKcmyk(79.7%, 73.7%, 0%, 53.7%)
CIE-LABlab(17.84, 30.02, -50.19)
CIE-LCHlch(17.84, 58.48, 300.88°)
OKLaboklab(30.41% 0.0017 -0.1453)
OKLCHoklch(30.41% 0.145 270.7)
XYZxyz(4.1356, 2.4817, 17.3971)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F76 #766F18
analogous
#184E76 #181F76 #401876
triadic
#181F76 #76181F #1F7618
tetradic
#181F76 #76184E #766F18 #187640
square
#181F76 #76184E #766F18 #187640
split-complementary
#181F76 #764018 #4E7618
monochromatic
#050719 #0E1243 #181F76 #222CA9 #333FD5

Accessibility & contrast

On white

14.03
#181F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F76
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F76#FFFFFF#000000##FFFFFF
##181F761.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181f76;
/* rgb */ color: rgb(24, 31, 118);
/* oklch */ color: oklch(30.4% 0.145 270.7);
Tailwind
colors: {
  custom: {
    50: '#675b9e',
    500: '#181f76',
    950: '#000000',
  },
}
SCSS
$custom: #181f76;
$custom-light: #675b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#181f76",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 235.532,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30408,
    "c": 0.14531,
    "h": 270.7
  },
  "luminance": 0.02482
}

Semantic roles & 50–950 ramp

primary
#181F76
secondary
#ABA33F
accent
#DC3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #181F76

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

Preview Lab → · Contrast checker → · Palette generator →

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