#18188D#18188D

#18188D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.181 H 270.0°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#18188D
RGBrgb(24, 24, 141)
HSLhsl(240, 71%, 32%)
HSVhsv(240, 83%, 55%)
CMYKcmyk(83%, 83%, 0%, 44.7%)
CIE-LABlab(19.10, 42.22, -62.67)
CIE-LCHlch(19.10, 75.56, 303.97°)
OKLaboklab(32.09% 0 -0.1814)
OKLCHoklch(32.09% 0.181 270)
XYZxyz(5.5094, 2.7699, 25.4384)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18188D #8D8D18
analogous
#18538D #18188D #53188D
triadic
#18188D #8D1818 #188D18
tetradic
#18188D #8D1853 #8D8D18 #188D53
square
#18188D #8D1853 #8D8D18 #188D53
split-complementary
#18188D #8D5318 #538D18
monochromatic
#060624 #0F0F59 #18188D #2121C1 #4141DF

Accessibility & contrast

On white

13.51
#18188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18188D
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18188D#FFFFFF#000000##FFFFFF
##18188D1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18188d;
/* rgb */ color: rgb(24, 24, 141);
/* oklch */ color: oklch(32.1% 0.181 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e58b0',
    500: '#18188d',
    950: '#000000',
  },
}
SCSS
$custom: #18188d;
$custom-light: #6e58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18188d",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32091,
    "c": 0.18144,
    "h": 270
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#18188D
secondary
#BFBF42
accent
#EE3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18188D

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

Preview Lab → · Contrast checker → · Palette generator →

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