#181C6A#181C6A

#181C6A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.6% C 0.132 H 272.2°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#181C6A
RGBrgb(24, 28, 106)
HSLhsl(237, 63%, 25%)
HSVhsv(237, 77%, 42%)
CMYKcmyk(77.4%, 73.6%, 0%, 58.4%)
CIE-LABlab(15.82, 27.45, -45.72)
CIE-LCHlch(15.82, 53.33, 300.98°)
OKLaboklab(28.57% 0.005 -0.1323)
OKLCHoklch(28.57% 0.132 272.2)
XYZxyz(3.3926, 2.0650, 13.8527)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C6A #6A6618
analogous
#18456A #181C6A #3D186A
triadic
#181C6A #6A181C #1C6A18
tetradic
#181C6A #6A1845 #6A6618 #186A3D
square
#181C6A #6A1845 #6A6618 #186A3D
split-complementary
#181C6A #6A3D18 #456A18
monochromatic
#060719 #0D0F38 #181C6A #23299C #2F36CE

Accessibility & contrast

On white

14.86
#181C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#181C6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C6A
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C6A#FFFFFF#000000##FFFFFF
##181C6A1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#003240
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181c6a;
/* rgb */ color: rgb(24, 28, 106);
/* oklch */ color: oklch(28.6% 0.132 272.2);
Tailwind
colors: {
  custom: {
    50: '#645895',
    500: '#181c6a',
    950: '#000000',
  },
}
SCSS
$custom: #181c6a;
$custom-light: #645895;
$custom-dark: #000000;
JSON
{
  "hex": "#181c6a",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 106
  },
  "hsl": {
    "h": 237.073,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28572,
    "c": 0.13236,
    "h": 272.2
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#181C6A
secondary
#A09B3E
accent
#DE42E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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