#181F6A#181F6A

#181F6A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.129 H 271.4°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#181F6A
RGBrgb(24, 31, 106)
HSLhsl(235, 63%, 25%)
HSVhsv(235, 77%, 42%)
CMYKcmyk(77.4%, 70.8%, 0%, 58.4%)
CIE-LABlab(16.57, 25.42, -44.49)
CIE-LCHlch(16.57, 51.24, 299.74°)
OKLaboklab(29.12% 0.0031 -0.1287)
OKLCHoklch(29.12% 0.129 271.4)
XYZxyz(3.4673, 2.2144, 13.8776)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F6A #6A6318
analogous
#18486A #181F6A #3A186A
triadic
#181F6A #6A181F #1F6A18
tetradic
#181F6A #6A1848 #6A6318 #186A3A
square
#181F6A #6A1848 #6A6318 #186A3A
split-complementary
#181F6A #6A3A18 #486A18
monochromatic
#060719 #0D1038 #181F6A #232E9C #2F3CCE

Accessibility & contrast

On white

14.55
#181F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F6A
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F6A#FFFFFF#000000##FFFFFF
##181F6A1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#003341
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181f6a;
/* rgb */ color: rgb(24, 31, 106);
/* oklch */ color: oklch(29.1% 0.129 271.4);
Tailwind
colors: {
  custom: {
    50: '#635b95',
    500: '#181f6a',
    950: '#000000',
  },
}
SCSS
$custom: #181f6a;
$custom-light: #635b95;
$custom-dark: #000000;
JSON
{
  "hex": "#181f6a",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 234.878,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29115,
    "c": 0.1287,
    "h": 271.4
  },
  "luminance": 0.02215
}

Semantic roles & 50–950 ramp

primary
#181F6A
secondary
#A0983E
accent
#D842E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #181F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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