#18186E#18186E

#18186E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.142 H 272.6°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#18186E
RGBrgb(24, 24, 110)
HSLhsl(240, 64%, 26%)
HSVhsv(240, 78%, 43%)
CMYKcmyk(78.2%, 78.2%, 0%, 56.9%)
CIE-LABlab(15.34, 31.51, -49.12)
CIE-LCHlch(15.34, 58.36, 302.68°)
OKLaboklab(28.36% 0.0065 -0.1422)
OKLCHoklch(28.36% 0.142 272.6)
XYZxyz(3.5169, 1.9729, 14.9443)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18186E #6E6E18
analogous
#18436E #18186E #43186E
triadic
#18186E #6E1818 #186E18
tetradic
#18186E #6E1843 #6E6E18 #186E43
square
#18186E #6E1843 #6E6E18 #186E43
split-complementary
#18186E #6E4318 #436E18
monochromatic
#050519 #0D0D3C #18186E #2323A0 #2F2FD2

Accessibility & contrast

On white

15.06
#18186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18186E
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18186E#FFFFFF#000000##FFFFFF
##18186E1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00226C
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #18186e;
/* rgb */ color: rgb(24, 24, 110);
/* oklch */ color: oklch(28.4% 0.142 272.6);
Tailwind
colors: {
  custom: {
    50: '#655699',
    500: '#18186e',
    950: '#000000',
  },
}
SCSS
$custom: #18186e;
$custom-light: #655699;
$custom-dark: #000000;
JSON
{
  "hex": "#18186e",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 240,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28362,
    "c": 0.14231,
    "h": 272.6
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#18186E
secondary
#A4A43E
accent
#E741E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #18186E

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

Preview Lab → · Contrast checker → · Palette generator →

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