#181884#181884

#181884 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.170 H 270.7°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#181884
RGBrgb(24, 24, 132)
HSLhsl(240, 69%, 31%)
HSVhsv(240, 82%, 52%)
CMYKcmyk(81.8%, 81.8%, 0%, 48.2%)
CIE-LABlab(17.98, 39.22, -58.88)
CIE-LCHlch(17.98, 70.74, 303.67°)
OKLaboklab(30.99% 0.0019 -0.1705)
OKLCHoklch(30.99% 0.17 270.7)
XYZxyz(4.8668, 2.5128, 22.0539)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181884 #848418
analogous
#184E84 #181884 #4E1884
triadic
#181884 #841818 #188418
tetradic
#181884 #84184E #848418 #18844E
square
#181884 #84184E #848418 #18844E
split-complementary
#181884 #844E18 #4E8418
monochromatic
#05051C #0F0F50 #181884 #2121B8 #3B3BDB

Accessibility & contrast

On white

13.98
#181884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181884
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181884#FFFFFF#000000##FFFFFF
##1818841.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003187
Deuteranopia (green-blind)
#002682
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181884;
/* rgb */ color: rgb(24, 24, 132);
/* oklch */ color: oklch(31.0% 0.170 270.7);
Tailwind
colors: {
  custom: {
    50: '#6b57a9',
    500: '#181884',
    950: '#000000',
  },
}
SCSS
$custom: #181884;
$custom-light: #6b57a9;
$custom-dark: #000000;
JSON
{
  "hex": "#181884",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 132
  },
  "hsl": {
    "h": 240,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.30986,
    "c": 0.17048,
    "h": 270.7
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#181884
secondary
#B8B840
accent
#EC3CEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181884

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

Preview Lab → · Contrast checker → · Palette generator →

#181884 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva