#181C8C#181C8C

#181C8C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.177 H 269.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#181C8C
RGBrgb(24, 28, 140)
HSLhsl(238, 71%, 32%)
HSVhsv(238, 83%, 55%)
CMYKcmyk(82.9%, 80%, 0%, 45.1%)
CIE-LABlab(19.71, 39.75, -61.03)
CIE-LCHlch(19.71, 72.83, 303.08°)
OKLaboklab(32.48% -0.0008 -0.1768)
OKLCHoklch(32.48% 0.177 269.7)
XYZxyz(5.5240, 2.9175, 25.0779)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C8C #8C8818
analogous
#18568C #181C8C #4E188C
triadic
#181C8C #8C181C #1C8C18
tetradic
#181C8C #8C1856 #8C8818 #188C4E
square
#181C8C #8C1856 #8C8818 #188C4E
split-complementary
#181C8C #8C4E18 #568C18
monochromatic
#060724 #0F1258 #181C8C #2126C0 #4046DE

Accessibility & contrast

On white

13.26
#181C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#181C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C8C
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C8C#FFFFFF#000000##FFFFFF
##181C8C1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #181c8c;
/* rgb */ color: rgb(24, 28, 140);
/* oklch */ color: oklch(32.5% 0.177 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d5aaf',
    500: '#181c8c',
    950: '#000000',
  },
}
SCSS
$custom: #181c8c;
$custom-light: #6d5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#181c8c",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 237.931,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32484,
    "c": 0.17676,
    "h": 269.7
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#181C8C
secondary
#BFBA41
accent
#E73AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #181C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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