#181F6C#181F6C

#181F6C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.3% C 0.132 H 271.3°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#181F6C
RGBrgb(24, 31, 108)
HSLhsl(235, 64%, 26%)
HSVhsv(235, 78%, 42%)
CMYKcmyk(77.8%, 71.3%, 0%, 57.6%)
CIE-LABlab(16.78, 26.20, -45.46)
CIE-LCHlch(16.78, 52.46, 299.95°)
OKLaboklab(29.33% 0.0029 -0.1315)
OKLCHoklch(29.33% 0.132 271.3)
XYZxyz(3.5725, 2.2565, 14.4317)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F6C #6C6518
analogous
#18496C #181F6C #3B186C
triadic
#181F6C #6C181F #1F6C18
tetradic
#181F6C #6C1849 #6C6518 #186C3B
square
#181F6C #6C1849 #6C6518 #186C3B
split-complementary
#181F6C #6C3B18 #496C18
monochromatic
#060719 #0D113A #181F6C #232D9E #2E3CD0

Accessibility & contrast

On white

14.47
#181F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F6C
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F6C#FFFFFF#000000##FFFFFF
##181F6C1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181f6c;
/* rgb */ color: rgb(24, 31, 108);
/* oklch */ color: oklch(29.3% 0.132 271.3);
Tailwind
colors: {
  custom: {
    50: '#645b97',
    500: '#181f6c',
    950: '#000000',
  },
}
SCSS
$custom: #181f6c;
$custom-light: #645b97;
$custom-dark: #000000;
JSON
{
  "hex": "#181f6c",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 235,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29327,
    "c": 0.13152,
    "h": 271.3
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#181F6C
secondary
#A2993E
accent
#D941E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #181F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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