#181B8C#181B8C

#181B8C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.178 H 269.8°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#181B8C
RGBrgb(24, 27, 140)
HSLhsl(238, 71%, 32%)
HSVhsv(238, 83%, 55%)
CMYKcmyk(82.9%, 80.7%, 0%, 45.1%)
CIE-LABlab(19.52, 40.30, -61.34)
CIE-LCHlch(19.52, 73.40, 303.30°)
OKLaboklab(32.35% -0.0005 -0.1777)
OKLCHoklch(32.35% 0.178 269.8)
XYZxyz(5.5006, 2.8709, 25.0701)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B8C #8C8918
analogous
#18558C #181B8C #4F188C
triadic
#181B8C #8C181B #1B8C18
tetradic
#181B8C #8C1855 #8C8918 #188C4F
square
#181B8C #8C1855 #8C8918 #188C4F
split-complementary
#181B8C #8C4F18 #558C18
monochromatic
#060724 #0F1158 #181B8C #2125C0 #4044DE

Accessibility & contrast

On white

13.34
#181B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B8C
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B8C#FFFFFF#000000##FFFFFF
##181B8C1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.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: #181b8c;
/* rgb */ color: rgb(24, 27, 140);
/* oklch */ color: oklch(32.4% 0.178 269.8);
Tailwind
colors: {
  custom: {
    50: '#6d5aaf',
    500: '#181b8c',
    950: '#000000',
  },
}
SCSS
$custom: #181b8c;
$custom-light: #6d5aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#181b8c",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 238.448,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3235,
    "c": 0.17766,
    "h": 269.8
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#181B8C
secondary
#BFBC41
accent
#E93AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #181B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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