#181888#181888

#181888 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.175 H 270.4°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#181888
RGBrgb(24, 24, 136)
HSLhsl(240, 70%, 31%)
HSVhsv(240, 82%, 53%)
CMYKcmyk(82.4%, 82.4%, 0%, 46.7%)
CIE-LABlab(18.47, 40.56, -60.57)
CIE-LCHlch(18.47, 72.90, 303.81°)
OKLaboklab(31.48% 0.0011 -0.1754)
OKLCHoklch(31.48% 0.175 270.4)
XYZxyz(5.1457, 2.6244, 23.5231)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181888 #888818
analogous
#185088 #181888 #501888
triadic
#181888 #881818 #188818
tetradic
#181888 #881850 #888818 #188850
square
#181888 #881850 #888818 #188850
split-complementary
#181888 #885018 #508818
monochromatic
#060620 #0F0F54 #181888 #2121BC #3E3EDD

Accessibility & contrast

On white

13.77
#181888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#181888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181888
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181888#FFFFFF#000000##FFFFFF
##1818881.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002786
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181888;
/* rgb */ color: rgb(24, 24, 136);
/* oklch */ color: oklch(31.5% 0.175 270.4);
Tailwind
colors: {
  custom: {
    50: '#6c58ac',
    500: '#181888',
    950: '#000000',
  },
}
SCSS
$custom: #181888;
$custom-light: #6c58ac;
$custom-dark: #000000;
JSON
{
  "hex": "#181888",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 240,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31475,
    "c": 0.17538,
    "h": 270.4
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#181888
secondary
#BCBC40
accent
#ED3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181888

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

Preview Lab → · Contrast checker → · Palette generator →

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