#181F7A#181F7A

#181F7A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.151 H 270.4°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#181F7A
RGBrgb(24, 31, 122)
HSLhsl(236, 67%, 29%)
HSVhsv(236, 80%, 48%)
CMYKcmyk(80.3%, 74.6%, 0%, 52.2%)
CIE-LABlab(18.27, 31.52, -52.03)
CIE-LCHlch(18.27, 60.83, 301.20°)
OKLaboklab(30.85% 0.0011 -0.1507)
OKLCHoklch(30.85% 0.151 270.4)
XYZxyz(4.3783, 2.5788, 18.6756)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F7A #7A7318
analogous
#18507A #181F7A #42187A
triadic
#181F7A #7A181F #1F7A18
tetradic
#181F7A #7A1850 #7A7318 #187A42
square
#181F7A #7A1850 #7A7318 #187A42
split-complementary
#181F7A #7A4218 #507A18
monochromatic
#05061A #0E1247 #181F7A #222CAD #3541D7

Accessibility & contrast

On white

13.85
#181F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#181F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F7A
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F7A#FFFFFF#000000##FFFFFF
##181F7A1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181f7a;
/* rgb */ color: rgb(24, 31, 122);
/* oklch */ color: oklch(30.9% 0.151 270.4);
Tailwind
colors: {
  custom: {
    50: '#685ba1',
    500: '#181f7a',
    950: '#000000',
  },
}
SCSS
$custom: #181f7a;
$custom-light: #685ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#181f7a",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 235.714,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30852,
    "c": 0.15067,
    "h": 270.4
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#181F7A
secondary
#AFA73F
accent
#DE3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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