#18147F#18147F

#18147F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.168 H 271.4°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#18147F
RGBrgb(24, 20, 127)
HSLhsl(242, 73%, 29%)
HSVhsv(242, 84%, 50%)
CMYKcmyk(81.1%, 84.3%, 0%, 50.2%)
CIE-LABlab(16.63, 39.64, -57.93)
CIE-LCHlch(16.63, 70.20, 304.38°)
OKLaboklab(29.87% 0.0042 -0.1677)
OKLCHoklch(29.87% 0.168 271.4)
XYZxyz(4.4563, 2.2263, 20.2694)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18147F #7B7F14
analogous
#14467F #18147F #4E147F
triadic
#18147F #7F1814 #147F18
tetradic
#18147F #7F1446 #7B7F14 #147F4E
square
#18147F #7F1446 #7B7F14 #147F4E
split-complementary
#18147F #7F4E14 #467F14
monochromatic
#05041A #0E0C4A #18147F #221CB4 #362FDE

Accessibility & contrast

On white

14.53
#18147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#18147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18147F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18147F#FFFFFF#000000##FFFFFF
##18147F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18147f;
/* rgb */ color: rgb(24, 20, 127);
/* oklch */ color: oklch(29.9% 0.168 271.4);
Tailwind
colors: {
  custom: {
    50: '#6a55a5',
    500: '#18147f',
    950: '#000000',
  },
}
SCSS
$custom: #18147f;
$custom-light: #6a55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18147f",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 242.243,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29869,
    "c": 0.16772,
    "h": 271.4
  },
  "luminance": 0.02227
}

Semantic roles & 50–950 ramp

primary
#18147F
secondary
#B0B43B
accent
#EF38E9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #18147F

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

Preview Lab → · Contrast checker → · Palette generator →

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