#181A8C#181A8C

#181A8C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.179 H 269.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#181A8C
RGBrgb(24, 26, 140)
HSLhsl(239, 71%, 32%)
HSVhsv(239, 83%, 55%)
CMYKcmyk(82.9%, 81.4%, 0%, 45.1%)
CIE-LABlab(19.33, 40.84, -61.65)
CIE-LCHlch(19.33, 73.95, 303.52°)
OKLaboklab(32.22% -0.0003 -0.1785)
OKLCHoklch(32.22% 0.179 269.9)
XYZxyz(5.4781, 2.8258, 25.0626)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A8C #8C8A18
analogous
#18548C #181A8C #50188C
triadic
#181A8C #8C181A #1A8C18
tetradic
#181A8C #8C1854 #8C8A18 #188C50
square
#181A8C #8C1854 #8C8A18 #188C50
split-complementary
#181A8C #8C5018 #548C18
monochromatic
#060724 #0F1058 #181A8C #2124C0 #4043DE

Accessibility & contrast

On white

13.42
#181A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#181A8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A8C
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A8C#FFFFFF#000000##FFFFFF
##181A8C1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181a8c;
/* rgb */ color: rgb(24, 26, 140);
/* oklch */ color: oklch(32.2% 0.179 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d59af',
    500: '#181a8c',
    950: '#000000',
  },
}
SCSS
$custom: #181a8c;
$custom-light: #6d59af;
$custom-dark: #000000;
JSON
{
  "hex": "#181a8c",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 238.966,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32219,
    "c": 0.17854,
    "h": 269.9
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#181A8C
secondary
#BFBD41
accent
#EA3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #181A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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