#181C6F#181C6F

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

Color values

HEX#181C6F
RGBrgb(24, 28, 111)
HSLhsl(237, 64%, 26%)
HSVhsv(237, 78%, 44%)
CMYKcmyk(78.4%, 74.8%, 0%, 56.5%)
CIE-LABlab(16.37, 29.34, -48.09)
CIE-LCHlch(16.37, 56.33, 301.39°)
OKLaboklab(29.12% 0.0043 -0.1392)
OKLCHoklch(29.12% 0.139 271.8)
XYZxyz(3.6602, 2.1720, 15.2622)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C6F #6F6B18
analogous
#18486F #181C6F #40186F
triadic
#181C6F #6F181C #1C6F18
tetradic
#181C6F #6F1848 #6F6B18 #186F40
square
#181C6F #6F1848 #6F6B18 #186F40
split-complementary
#181C6F #6F4018 #486F18
monochromatic
#050619 #0D0F3D #181C6F #2329A1 #2F37D2

Accessibility & contrast

On white

14.64
#181C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C6F
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C6F#FFFFFF#000000##FFFFFF
##181C6F1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181c6f;
/* rgb */ color: rgb(24, 28, 111);
/* oklch */ color: oklch(29.1% 0.139 271.8);
Tailwind
colors: {
  custom: {
    50: '#655999',
    500: '#181c6f',
    950: '#000000',
  },
}
SCSS
$custom: #181c6f;
$custom-light: #655999;
$custom-dark: #000000;
JSON
{
  "hex": "#181c6f",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 111
  },
  "hsl": {
    "h": 237.241,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29124,
    "c": 0.13925,
    "h": 271.8
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#181C6F
secondary
#A5A03E
accent
#E040E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #181C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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