#18188B#18188B

#18188B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.179 H 270.1°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#18188B
RGBrgb(24, 24, 139)
HSLhsl(240, 71%, 32%)
HSVhsv(240, 83%, 55%)
CMYKcmyk(82.7%, 82.7%, 0%, 45.5%)
CIE-LABlab(18.85, 41.56, -61.83)
CIE-LCHlch(18.85, 74.50, 303.91°)
OKLaboklab(31.84% 0.0004 -0.179)
OKLCHoklch(31.84% 0.179 270.1)
XYZxyz(5.3619, 2.7109, 24.6618)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18188B #8B8B18
analogous
#18528B #18188B #52188B
triadic
#18188B #8B1818 #188B18
tetradic
#18188B #8B1852 #8B8B18 #188B52
square
#18188B #8B1852 #8B8B18 #188B52
split-complementary
#18188B #8B5218 #528B18
monochromatic
#060623 #0F0F57 #18188B #2121BF #3F3FDE

Accessibility & contrast

On white

13.62
#18188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18188B
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18188B#FFFFFF#000000##FFFFFF
##18188B1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18188b;
/* rgb */ color: rgb(24, 24, 139);
/* oklch */ color: oklch(31.8% 0.179 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d58ae',
    500: '#18188b',
    950: '#000000',
  },
}
SCSS
$custom: #18188b;
$custom-light: #6d58ae;
$custom-dark: #000000;
JSON
{
  "hex": "#18188b",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.31844,
    "c": 0.17903,
    "h": 270.1
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#18188B
secondary
#BEBE40
accent
#ED3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080310
muted
#7B787F

Preview Lab

Preview with #18188B

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

Preview Lab → · Contrast checker → · Palette generator →

#18188B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva