#18188F#18188F

#18188F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.184 H 269.9°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#18188F
RGBrgb(24, 24, 143)
HSLhsl(240, 71%, 33%)
HSVhsv(240, 83%, 56%)
CMYKcmyk(83.2%, 83.2%, 0%, 43.9%)
CIE-LABlab(19.35, 42.88, -63.50)
CIE-LCHlch(19.35, 76.62, 304.03°)
OKLaboklab(32.34% -0.0004 -0.1838)
OKLCHoklch(32.34% 0.184 269.9)
XYZxyz(5.6596, 2.8300, 26.2292)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18188F #8F8F18
analogous
#18538F #18188F #53188F
triadic
#18188F #8F1818 #188F18
tetradic
#18188F #8F1853 #8F8F18 #188F53
square
#18188F #8F1853 #8F8F18 #188F53
split-complementary
#18188F #8F5318 #538F18
monochromatic
#060626 #0F0F5B #18188F #2121C3 #4242DF

Accessibility & contrast

On white

13.41
#18188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#18188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18188F
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18188F#FFFFFF#000000##FFFFFF
##18188F1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18188f;
/* rgb */ color: rgb(24, 24, 143);
/* oklch */ color: oklch(32.3% 0.184 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e58b1',
    500: '#18188f',
    950: '#000000',
  },
}
SCSS
$custom: #18188f;
$custom-light: #6e58b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18188f",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32339,
    "c": 0.18384,
    "h": 269.9
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18188F

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

Preview Lab → · Contrast checker → · Palette generator →

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