#18186C#18186C

#18186C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.140 H 272.8°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#18186C
RGBrgb(24, 24, 108)
HSLhsl(240, 64%, 26%)
HSVhsv(240, 78%, 42%)
CMYKcmyk(77.8%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.11, 30.78, -48.20)
CIE-LCHlch(15.11, 57.19, 302.56°)
OKLaboklab(28.13% 0.0069 -0.1395)
OKLCHoklch(28.13% 0.14 272.8)
XYZxyz(3.4092, 1.9298, 14.3773)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18186C #6C6C18
analogous
#18426C #18186C #42186C
triadic
#18186C #6C1818 #186C18
tetradic
#18186C #6C1842 #6C6C18 #186C42
square
#18186C #6C1842 #6C6C18 #186C42
split-complementary
#18186C #6C4218 #426C18
monochromatic
#060619 #0D0D3A #18186C #23239E #2E2ED0

Accessibility & contrast

On white

15.15
#18186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#18186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18186C
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18186C#FFFFFF#000000##FFFFFF
##18186C1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #18186c;
/* rgb */ color: rgb(24, 24, 108);
/* oklch */ color: oklch(28.1% 0.140 272.8);
Tailwind
colors: {
  custom: {
    50: '#655697',
    500: '#18186c',
    950: '#000000',
  },
}
SCSS
$custom: #18186c;
$custom-light: #655697;
$custom-dark: #000000;
JSON
{
  "hex": "#18186c",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 240,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28131,
    "c": 0.13964,
    "h": 272.8
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#18186C
secondary
#A2A23E
accent
#E741E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #18186C

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

Preview Lab → · Contrast checker → · Palette generator →

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