#181881#181881

#181881 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.167 H 270.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#181881
RGBrgb(24, 24, 129)
HSLhsl(240, 69%, 30%)
HSVhsv(240, 81%, 51%)
CMYKcmyk(81.4%, 81.4%, 0%, 49.4%)
CIE-LABlab(17.61, 38.20, -57.59)
CIE-LCHlch(17.61, 69.10, 303.56°)
OKLaboklab(30.62% 0.0026 -0.1667)
OKLCHoklch(30.62% 0.167 270.9)
XYZxyz(4.6644, 2.4319, 20.9882)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181881 #818118
analogous
#184C81 #181881 #4C1881
triadic
#181881 #811818 #188118
tetradic
#181881 #81184D #818118 #18814D
square
#181881 #81184D #818118 #18814D
split-complementary
#181881 #814C18 #4D8118
monochromatic
#05051A #0E0E4D #181881 #2222B5 #3939DA

Accessibility & contrast

On white

14.13
#181881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181881
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181881#FFFFFF#000000##FFFFFF
##1818811.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181881;
/* rgb */ color: rgb(24, 24, 129);
/* oklch */ color: oklch(30.6% 0.167 270.9);
Tailwind
colors: {
  custom: {
    50: '#6a57a7',
    500: '#181881',
    950: '#000000',
  },
}
SCSS
$custom: #181881;
$custom-light: #6a57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#181881",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.30621,
    "c": 0.16676,
    "h": 270.9
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#181881
secondary
#B5B540
accent
#EB3CEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181881

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

Preview Lab → · Contrast checker → · Palette generator →

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