#181F66#181F66

#181F66 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.123 H 271.6°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#181F66
RGBrgb(24, 31, 102)
HSLhsl(235, 62%, 25%)
HSVhsv(235, 76%, 40%)
CMYKcmyk(76.5%, 69.6%, 0%, 60%)
CIE-LABlab(16.17, 23.85, -42.53)
CIE-LCHlch(16.17, 48.76, 299.29°)
OKLaboklab(28.7% 0.0035 -0.1229)
OKLCHoklch(28.7% 0.123 271.6)
XYZxyz(3.2641, 2.1331, 12.8075)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F66 #665F18
analogous
#184666 #181F66 #381866
triadic
#181F66 #66181F #1F6618
tetradic
#181F66 #661846 #665F18 #186638
square
#181F66 #661846 #665F18 #186638
split-complementary
#181F66 #663818 #466618
monochromatic
#060819 #0C1034 #181F66 #242E98 #2F3DC9

Accessibility & contrast

On white

14.72
#181F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F66
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F66#FFFFFF#000000##FFFFFF
##181F661.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#00323F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181f66;
/* rgb */ color: rgb(24, 31, 102);
/* oklch */ color: oklch(28.7% 0.123 271.6);
Tailwind
colors: {
  custom: {
    50: '#625a92',
    500: '#181f66',
    950: '#000000',
  },
}
SCSS
$custom: #181f66;
$custom-light: #625a92;
$custom-dark: #000000;
JSON
{
  "hex": "#181f66",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 234.615,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28698,
    "c": 0.12297,
    "h": 271.6
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#181F66
secondary
#9C943E
accent
#D643E5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #181F66

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

Preview Lab → · Contrast checker → · Palette generator →

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