#18188C#18188C

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

Color values

HEX#18188C
RGBrgb(24, 24, 140)
HSLhsl(240, 71%, 32%)
HSVhsv(240, 83%, 55%)
CMYKcmyk(82.9%, 82.9%, 0%, 45.1%)
CIE-LABlab(18.97, 41.89, -62.25)
CIE-LCHlch(18.97, 75.03, 303.94°)
OKLaboklab(31.97% 0.0002 -0.1802)
OKLCHoklch(31.97% 0.18 270.1)
XYZxyz(5.4353, 2.7403, 25.0483)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18188C #8C8C18
analogous
#18528C #18188C #52188C
triadic
#18188C #8C1818 #188C18
tetradic
#18188C #8C1852 #8C8C18 #188C52
square
#18188C #8C1852 #8C8C18 #188C52
split-complementary
#18188C #8C5218 #528C18
monochromatic
#060624 #0F0F58 #18188C #2121C0 #4040DE

Accessibility & contrast

On white

13.56
#18188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18188C
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18188C#FFFFFF#000000##FFFFFF
##18188C1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18188c;
/* rgb */ color: rgb(24, 24, 140);
/* oklch */ color: oklch(32.0% 0.180 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d58af',
    500: '#18188c',
    950: '#000000',
  },
}
SCSS
$custom: #18188c;
$custom-light: #6d58af;
$custom-dark: #000000;
JSON
{
  "hex": "#18188c",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 240,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31968,
    "c": 0.18024,
    "h": 270.1
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#18188C
secondary
#BFBF41
accent
#ED3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #18188C

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

Preview Lab → · Contrast checker → · Palette generator →

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