#18137E#18137E

#18137E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.167 H 271.6°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#18137E
RGBrgb(24, 19, 126)
HSLhsl(243, 74%, 28%)
HSVhsv(243, 85%, 49%)
CMYKcmyk(81%, 84.9%, 0%, 50.6%)
CIE-LABlab(16.33, 39.81, -57.79)
CIE-LCHlch(16.33, 70.18, 304.56°)
OKLaboklab(29.63% 0.0047 -0.1672)
OKLCHoklch(29.63% 0.167 271.6)
XYZxyz(4.3742, 2.1658, 19.9221)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18137E #797E13
analogous
#13437E #18137E #4D137E
triadic
#18137E #7E1813 #137E18
tetradic
#18137E #7E1343 #797E13 #137E4D
square
#18137E #7E1343 #797E13 #137E4D
split-complementary
#18137E #7E4D13 #437E13
monochromatic
#05041B #0E0B49 #18137E #221BB3 #352CDF

Accessibility & contrast

On white

14.65
#18137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#18137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18137E
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18137E#FFFFFF#000000##FFFFFF
##18137E1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18137e;
/* rgb */ color: rgb(24, 19, 126);
/* oklch */ color: oklch(29.6% 0.167 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a54a5',
    500: '#18137e',
    950: '#000000',
  },
}
SCSS
$custom: #18137e;
$custom-light: #6a54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18137e",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 242.804,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29625,
    "c": 0.16731,
    "h": 271.6
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#18137E
secondary
#AEB439
accent
#F037E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18137E

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

Preview Lab → · Contrast checker → · Palette generator →

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