#181F67#181F67

#181F67 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 28.8% C 0.124 H 271.6°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#181F67
RGBrgb(24, 31, 103)
HSLhsl(235, 62%, 25%)
HSVhsv(235, 77%, 40%)
CMYKcmyk(76.7%, 69.9%, 0%, 59.6%)
CIE-LABlab(16.27, 24.25, -43.02)
CIE-LCHlch(16.27, 49.38, 299.41°)
OKLaboklab(28.8% 0.0034 -0.1244)
OKLCHoklch(28.8% 0.124 271.6)
XYZxyz(3.3140, 2.1531, 13.0703)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F67 #676018
analogous
#184667 #181F67 #391867
triadic
#181F67 #67181F #1F6718
tetradic
#181F67 #671846 #676018 #186739
square
#181F67 #671846 #676018 #186739
split-complementary
#181F67 #673918 #466718
monochromatic
#060719 #0C1035 #181F67 #242E99 #2F3DCA

Accessibility & contrast

On white

14.68
#181F67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F67
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F67#FFFFFF#000000##FFFFFF
##181F671.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#003240
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181f67;
/* rgb */ color: rgb(24, 31, 103);
/* oklch */ color: oklch(28.8% 0.124 271.6);
Tailwind
colors: {
  custom: {
    50: '#625a93',
    500: '#181f67',
    950: '#000000',
  },
}
SCSS
$custom: #181f67;
$custom-light: #625a93;
$custom-dark: #000000;
JSON
{
  "hex": "#181f67",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 103
  },
  "hsl": {
    "h": 234.684,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28802,
    "c": 0.12441,
    "h": 271.6
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#181F67
secondary
#9D953E
accent
#D743E5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #181F67

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

Preview Lab → · Contrast checker → · Palette generator →

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