#18187A#18187A

#18187A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.158 H 271.5°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#18187A
RGBrgb(24, 24, 122)
HSLhsl(240, 67%, 29%)
HSVhsv(240, 80%, 48%)
CMYKcmyk(80.3%, 80.3%, 0%, 52.2%)
CIE-LABlab(16.76, 35.78, -54.53)
CIE-LCHlch(16.76, 65.22, 303.27°)
OKLaboklab(29.78% 0.0041 -0.1579)
OKLCHoklch(29.78% 0.158 271.5)
XYZxyz(4.2150, 2.2521, 18.6211)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18187A #7A7A18
analogous
#18497A #18187A #49187A
triadic
#18187A #7A1818 #187A18
tetradic
#18187A #7A1849 #7A7A18 #187A49
square
#18187A #7A1849 #7A7A18 #187A49
split-complementary
#18187A #7A4918 #497A18
monochromatic
#05051A #0E0E47 #18187A #2222AD #3535D7

Accessibility & contrast

On white

14.48
#18187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#18187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18187A
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18187A#FFFFFF#000000##FFFFFF
##18187A1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18187a;
/* rgb */ color: rgb(24, 24, 122);
/* oklch */ color: oklch(29.8% 0.158 271.5);
Tailwind
colors: {
  custom: {
    50: '#6857a2',
    500: '#18187a',
    950: '#000000',
  },
}
SCSS
$custom: #18187a;
$custom-light: #6857a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18187a",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 240,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29777,
    "c": 0.15793,
    "h": 271.5
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#18187A
secondary
#AFAF3F
accent
#EA3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18187A

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

Preview Lab → · Contrast checker → · Palette generator →

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