#181F80#181F80

#181F80 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.159 H 270.1°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#181F80
RGBrgb(24, 31, 128)
HSLhsl(236, 68%, 30%)
HSVhsv(236, 81%, 50%)
CMYKcmyk(81.3%, 75.8%, 0%, 49.8%)
CIE-LABlab(18.94, 33.73, -54.75)
CIE-LCHlch(18.94, 64.31, 301.63°)
OKLaboklab(31.53% 0.0002 -0.1586)
OKLCHoklch(31.53% 0.159 270.1)
XYZxyz(4.7616, 2.7321, 20.6943)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F80 #807918
analogous
#185380 #181F80 #451880
triadic
#181F80 #80181F #1F8018
tetradic
#181F80 #801853 #807918 #188045
square
#181F80 #801853 #807918 #188045
split-complementary
#181F80 #804518 #538018
monochromatic
#05061A #0E134C #181F80 #222BB4 #3943DA

Accessibility & contrast

On white

13.58
#181F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#181F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F80
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F80#FFFFFF#000000##FFFFFF
##181F801.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181f80;
/* rgb */ color: rgb(24, 31, 128);
/* oklch */ color: oklch(31.5% 0.159 270.1);
Tailwind
colors: {
  custom: {
    50: '#695ba6',
    500: '#181f80',
    950: '#000000',
  },
}
SCSS
$custom: #181f80;
$custom-light: #695ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#181f80",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 235.962,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31527,
    "c": 0.15859,
    "h": 270.1
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#181F80
secondary
#B4AC40
accent
#E03DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #181F80

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

Preview Lab → · Contrast checker → · Palette generator →

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