#18137C#18137C

#18137C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.165 H 271.8°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#18137C
RGBrgb(24, 19, 124)
HSLhsl(243, 73%, 28%)
HSVhsv(243, 85%, 49%)
CMYKcmyk(80.6%, 84.7%, 0%, 51.4%)
CIE-LABlab(16.08, 39.15, -56.94)
CIE-LCHlch(16.08, 69.10, 304.51°)
OKLaboklab(29.37% 0.0052 -0.1648)
OKLCHoklch(29.37% 0.165 271.8)
XYZxyz(4.2464, 2.1147, 19.2493)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18137C #777C13
analogous
#13427C #18137C #4C137C
triadic
#18137C #7C1813 #137C18
tetradic
#18137C #7C1342 #777C13 #137C4C
square
#18137C #7C1342 #777C13 #137C4C
split-complementary
#18137C #7C4C13 #427C13
monochromatic
#05041B #0E0B47 #18137C #221BB1 #332BDF

Accessibility & contrast

On white

14.76
#18137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#18137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18137C
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18137C#FFFFFF#000000##FFFFFF
##18137C1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18137c;
/* rgb */ color: rgb(24, 19, 124);
/* oklch */ color: oklch(29.4% 0.165 271.8);
Tailwind
colors: {
  custom: {
    50: '#6954a3',
    500: '#18137c',
    950: '#000000',
  },
}
SCSS
$custom: #18137c;
$custom-light: #6954a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18137c",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 242.857,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29374,
    "c": 0.16486,
    "h": 271.8
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#18137C
secondary
#ACB239
accent
#F038E7
background
#F6F5FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18137C

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

Preview Lab → · Contrast checker → · Palette generator →

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