#18137F#18137F

#18137F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.169 H 271.5°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#18137F
RGBrgb(24, 19, 127)
HSLhsl(243, 74%, 29%)
HSVhsv(243, 85%, 50%)
CMYKcmyk(81.1%, 85%, 0%, 50.2%)
CIE-LABlab(16.46, 40.14, -58.22)
CIE-LCHlch(16.46, 70.71, 304.58°)
OKLaboklab(29.75% 0.0045 -0.1685)
OKLCHoklch(29.75% 0.169 271.5)
XYZxyz(4.4390, 2.1917, 20.2637)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18137F #7A7F13
analogous
#13447F #18137F #4E137F
triadic
#18137F #7F1813 #137F18
tetradic
#18137F #7F1344 #7A7F13 #137F4E
square
#18137F #7F1344 #7A7F13 #137F4E
split-complementary
#18137F #7F4E13 #447F13
monochromatic
#05041B #0E0B4A #18137F #221BB4 #352DE0

Accessibility & contrast

On white

14.60
#18137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#18137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18137F
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18137F#FFFFFF#000000##FFFFFF
##18137F1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #18137f;
/* rgb */ color: rgb(24, 19, 127);
/* oklch */ color: oklch(29.8% 0.169 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a54a5',
    500: '#18137f',
    950: '#000000',
  },
}
SCSS
$custom: #18137f;
$custom-light: #6a54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18137f",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 242.778,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29751,
    "c": 0.16853,
    "h": 271.5
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#18137F
secondary
#AFB439
accent
#F137E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #18137F

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

Preview Lab → · Contrast checker → · Palette generator →

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