#18147D#18147D

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

Color values

HEX#18147D
RGBrgb(24, 20, 125)
HSLhsl(242, 72%, 28%)
HSVhsv(242, 84%, 49%)
CMYKcmyk(80.8%, 84%, 0%, 51%)
CIE-LABlab(16.38, 38.97, -57.08)
CIE-LCHlch(16.38, 69.12, 304.32°)
OKLaboklab(29.62% 0.0047 -0.1652)
OKLCHoklch(29.62% 0.165 271.6)
XYZxyz(4.3273, 2.1747, 19.5898)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18147D #797D14
analogous
#14447D #18147D #4C147D
triadic
#18147D #7D1814 #147D18
tetradic
#18147D #7D1444 #797D14 #147D4C
square
#18147D #7D1444 #797D14 #147D4C
split-complementary
#18147D #7D4C14 #447D14
monochromatic
#05041A #0E0C48 #18147D #221CB2 #352EDE

Accessibility & contrast

On white

14.63
#18147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#18147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18147D
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18147D#FFFFFF#000000##FFFFFF
##18147D1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18147d;
/* rgb */ color: rgb(24, 20, 125);
/* oklch */ color: oklch(29.6% 0.165 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a55a4',
    500: '#18147d',
    950: '#000000',
  },
}
SCSS
$custom: #18147d;
$custom-light: #6a55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18147d",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 242.286,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.16527,
    "h": 271.6
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#18147D
secondary
#AEB23A
accent
#EF39E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18147D

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

Preview Lab → · Contrast checker → · Palette generator →

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