#181C9D#181C9D

#181C9D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.197 H 268.8°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#181C9D
RGBrgb(24, 28, 157)
HSLhsl(238, 73%, 35%)
HSVhsv(238, 85%, 62%)
CMYKcmyk(84.7%, 82.2%, 0%, 38.4%)
CIE-LABlab(21.79, 45.44, -68.08)
CIE-LCHlch(21.79, 81.85, 303.72°)
OKLaboklab(34.54% -0.0041 -0.1972)
OKLCHoklch(34.54% 0.197 268.8)
XYZxyz(6.8757, 3.4582, 32.1969)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C9D #9D9918
analogous
#185F9D #181C9D #56189D
triadic
#181C9D #9D181C #1C9D18
tetradic
#181C9D #9D185F #9D9918 #189D56
square
#181C9D #9D185F #9D9918 #189D56
split-complementary
#181C9D #9D5618 #5F9D18
monochromatic
#080933 #101368 #181C9D #2025D2 #4C50E4

Accessibility & contrast

On white

12.41
#181C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#181C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C9D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C9D#FFFFFF#000000##FFFFFF
##181C9D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA1
Deuteranopia (green-blind)
#002D9B
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #181c9d;
/* rgb */ color: rgb(24, 28, 157);
/* oklch */ color: oklch(34.5% 0.197 268.8);
Tailwind
colors: {
  custom: {
    50: '#725bbb',
    500: '#181c9d',
    950: '#000000',
  },
}
SCSS
$custom: #181c9d;
$custom-light: #725bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#181c9d",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 238.195,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34542,
    "c": 0.19723,
    "h": 268.8
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#181C9D
secondary
#C5C24B
accent
#EB38F0
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #181C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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