#18137A#18137A

#18137A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.162 H 272.0°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#18137A
RGBrgb(24, 19, 122)
HSLhsl(243, 73%, 28%)
HSVhsv(243, 84%, 48%)
CMYKcmyk(80.3%, 84.4%, 0%, 52.2%)
CIE-LABlab(15.82, 38.49, -56.09)
CIE-LCHlch(15.82, 68.02, 304.46°)
OKLaboklab(29.12% 0.0057 -0.1623)
OKLCHoklch(29.12% 0.162 272)
XYZxyz(4.1212, 2.0646, 18.5899)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18137A #757A13
analogous
#13417A #18137A #4C137A
triadic
#18137A #7A1813 #137A18
tetradic
#18137A #7A1341 #757A13 #137A4C
square
#18137A #7A1341 #757A13 #137A4C
split-complementary
#18137A #7A4C13 #417A13
monochromatic
#05041A #0E0B45 #18137A #221BAF #322ADE

Accessibility & contrast

On white

14.86
#18137A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#18137A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18137A
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18137A#FFFFFF#000000##FFFFFF
##18137A1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7D
Deuteranopia (green-blind)
#002278
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18137a;
/* rgb */ color: rgb(24, 19, 122);
/* oklch */ color: oklch(29.1% 0.162 272.0);
Tailwind
colors: {
  custom: {
    50: '#6954a2',
    500: '#18137a',
    950: '#000000',
  },
}
SCSS
$custom: #18137a;
$custom-light: #6954a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18137a",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 122
  },
  "hsl": {
    "h": 242.913,
    "s": 73.05,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29124,
    "c": 0.1624,
    "h": 272
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#18137A
secondary
#AAB039
accent
#F038E7
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #18137A

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

Preview Lab → · Contrast checker → · Palette generator →

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