#18137D#18137D

#18137D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.166 H 271.7°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#18137D
RGBrgb(24, 19, 125)
HSLhsl(243, 74%, 28%)
HSVhsv(243, 85%, 49%)
CMYKcmyk(80.8%, 84.8%, 0%, 51%)
CIE-LABlab(16.21, 39.48, -57.37)
CIE-LCHlch(16.21, 69.64, 304.54°)
OKLaboklab(29.5% 0.005 -0.166)
OKLCHoklch(29.5% 0.166 271.7)
XYZxyz(4.3100, 2.1401, 19.5840)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18137D #787D13
analogous
#13437D #18137D #4D137D
triadic
#18137D #7D1813 #137D18
tetradic
#18137D #7D1343 #787D13 #137D4D
square
#18137D #7D1343 #787D13 #137D4D
split-complementary
#18137D #7D4D13 #437D13
monochromatic
#05041B #0E0B48 #18137D #221BB2 #342CDF

Accessibility & contrast

On white

14.70
#18137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18137D
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18137D#FFFFFF#000000##FFFFFF
##18137D1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00237B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #18137d;
/* rgb */ color: rgb(24, 19, 125);
/* oklch */ color: oklch(29.5% 0.166 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a54a4',
    500: '#18137d',
    950: '#000000',
  },
}
SCSS
$custom: #18137d;
$custom-light: #6a54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18137d",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 242.83,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.295,
    "c": 0.16608,
    "h": 271.7
  },
  "luminance": 0.02141
}

Semantic roles & 50–950 ramp

primary
#18137D
secondary
#ADB339
accent
#F038E8
background
#F6F5FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18137D

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

Preview Lab → · Contrast checker → · Palette generator →

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