#181F6F#181F6F

#181F6F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.136 H 271.1°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#181F6F
RGBrgb(24, 31, 111)
HSLhsl(235, 64%, 26%)
HSVhsv(235, 78%, 44%)
CMYKcmyk(78.4%, 72.1%, 0%, 56.5%)
CIE-LABlab(17.09, 27.35, -46.89)
CIE-LCHlch(17.09, 54.29, 300.25°)
OKLaboklab(29.65% 0.0026 -0.1357)
OKLCHoklch(29.65% 0.136 271.1)
XYZxyz(3.7349, 2.3215, 15.2871)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F6F #6F6818
analogous
#184B6F #181F6F #3D186F
triadic
#181F6F #6F181F #1F6F18
tetradic
#181F6F #6F184B #6F6818 #186F3D
square
#181F6F #6F184B #6F6818 #186F3D
split-complementary
#181F6F #6F3D18 #4B6F18
monochromatic
#050719 #0D113D #181F6F #232DA1 #2F3CD2

Accessibility & contrast

On white

14.34
#181F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F6F
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F6F#FFFFFF#000000##FFFFFF
##181F6F1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181f6f;
/* rgb */ color: rgb(24, 31, 111);
/* oklch */ color: oklch(29.6% 0.136 271.1);
Tailwind
colors: {
  custom: {
    50: '#655b99',
    500: '#181f6f',
    950: '#000000',
  },
}
SCSS
$custom: #181f6f;
$custom-light: #655b99;
$custom-dark: #000000;
JSON
{
  "hex": "#181f6f",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 235.172,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29647,
    "c": 0.13571,
    "h": 271.1
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#181F6F
secondary
#A59C3E
accent
#DA40E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #181F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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