#18187E#18187E

#18187E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.163 H 271.1°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#18187E
RGBrgb(24, 24, 126)
HSLhsl(240, 68%, 29%)
HSVhsv(240, 81%, 49%)
CMYKcmyk(81%, 81%, 0%, 50.6%)
CIE-LABlab(17.24, 37.17, -56.29)
CIE-LCHlch(17.24, 67.45, 303.44°)
OKLaboklab(30.26% 0.0032 -0.163)
OKLCHoklch(30.26% 0.163 271.1)
XYZxyz(4.4679, 2.3533, 19.9534)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18187E #7E7E18
analogous
#184B7E #18187E #4B187E
triadic
#18187E #7E1818 #187E18
tetradic
#18187E #7E184B #7E7E18 #187E4B
square
#18187E #7E184B #7E7E18 #187E4B
split-complementary
#18187E #7E4B18 #4B7E18
monochromatic
#05051A #0E0E4B #18187E #2222B1 #3737D9

Accessibility & contrast

On white

14.28
#18187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#18187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18187E
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18187E#FFFFFF#000000##FFFFFF
##18187E1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18187e;
/* rgb */ color: rgb(24, 24, 126);
/* oklch */ color: oklch(30.3% 0.163 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a57a5',
    500: '#18187e',
    950: '#000000',
  },
}
SCSS
$custom: #18187e;
$custom-light: #6a57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18187e",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30258,
    "c": 0.163,
    "h": 271.1
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#18187E
secondary
#B2B23F
accent
#EB3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18187E

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

Preview Lab → · Contrast checker → · Palette generator →

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