#181C8E#181C8E

#181C8E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.179 H 269.6°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#181C8E
RGBrgb(24, 28, 142)
HSLhsl(238, 71%, 33%)
HSVhsv(238, 83%, 56%)
CMYKcmyk(83.1%, 80.3%, 0%, 44.3%)
CIE-LABlab(19.95, 40.44, -61.87)
CIE-LCHlch(19.95, 73.91, 303.17°)
OKLaboklab(32.72% -0.0012 -0.1792)
OKLCHoklch(32.72% 0.179 269.6)
XYZxyz(5.6728, 2.9770, 25.8616)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C8E #8E8A18
analogous
#18578E #181C8E #4F188E
triadic
#181C8E #8E181C #1C8E18
tetradic
#181C8E #8E1857 #8E8A18 #188E4F
square
#181C8E #8E1857 #8E8A18 #188E4F
split-complementary
#181C8E #8E4F18 #578E18
monochromatic
#060725 #0F125A #181C8E #2126C2 #4147DF

Accessibility & contrast

On white

13.16
#181C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#181C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C8E
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C8E#FFFFFF#000000##FFFFFF
##181C8E1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #181c8e;
/* rgb */ color: rgb(24, 28, 142);
/* oklch */ color: oklch(32.7% 0.179 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e5ab0',
    500: '#181c8e',
    950: '#000000',
  },
}
SCSS
$custom: #181c8e;
$custom-light: #6e5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#181c8e",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 237.966,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32723,
    "c": 0.17922,
    "h": 269.6
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#181C8E
secondary
#C0BB42
accent
#E83AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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