#181B8E#181B8E

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

Color values

HEX#181B8E
RGBrgb(24, 27, 142)
HSLhsl(238, 71%, 33%)
HSVhsv(238, 83%, 56%)
CMYKcmyk(83.1%, 81%, 0%, 44.3%)
CIE-LABlab(19.76, 40.98, -62.19)
CIE-LCHlch(19.76, 74.47, 303.38°)
OKLaboklab(32.59% -0.0009 -0.1801)
OKLCHoklch(32.59% 0.18 269.7)
XYZxyz(5.6494, 2.9304, 25.8538)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B8E #8E8B18
analogous
#18568E #181B8E #50188E
triadic
#181B8E #8E181B #1B8E18
tetradic
#181B8E #8E1856 #8E8B18 #188E50
square
#181B8E #8E1856 #8E8B18 #188E50
split-complementary
#181B8E #8E5018 #568E18
monochromatic
#060725 #0F115A #181B8E #2125C2 #4145DF

Accessibility & contrast

On white

13.24
#181B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#181B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B8E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B8E#FFFFFF#000000##FFFFFF
##181B8E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.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: #181b8e;
/* rgb */ color: rgb(24, 27, 142);
/* oklch */ color: oklch(32.6% 0.180 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e5ab0',
    500: '#181b8e',
    950: '#000000',
  },
}
SCSS
$custom: #181b8e;
$custom-light: #6e5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#181b8e",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 238.475,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32591,
    "c": 0.18011,
    "h": 269.7
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#181B8E
secondary
#C0BC42
accent
#E93AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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