#18147E#18147E

#18147E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.167 H 271.5°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#18147E
RGBrgb(24, 20, 126)
HSLhsl(242, 73%, 29%)
HSVhsv(242, 84%, 49%)
CMYKcmyk(81%, 84.1%, 0%, 50.6%)
CIE-LABlab(16.51, 39.31, -57.51)
CIE-LCHlch(16.51, 69.66, 304.35°)
OKLaboklab(29.74% 0.0045 -0.1664)
OKLCHoklch(29.74% 0.167 271.5)
XYZxyz(4.3915, 2.2004, 19.9279)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18147E #7A7E14
analogous
#14457E #18147E #4D147E
triadic
#18147E #7E1814 #147E18
tetradic
#18147E #7E1445 #7A7E14 #147E4D
square
#18147E #7E1445 #7A7E14 #147E4D
split-complementary
#18147E #7E4D14 #457E14
monochromatic
#05041A #0E0C49 #18147E #221CB3 #352EDE

Accessibility & contrast

On white

14.58
#18147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18147E
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18147E#FFFFFF#000000##FFFFFF
##18147E1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18147e;
/* rgb */ color: rgb(24, 20, 126);
/* oklch */ color: oklch(29.7% 0.167 271.5);
Tailwind
colors: {
  custom: {
    50: '#6a55a5',
    500: '#18147e',
    950: '#000000',
  },
}
SCSS
$custom: #18147e;
$custom-light: #6a55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18147e",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 242.264,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29744,
    "c": 0.1665,
    "h": 271.5
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#18147E
secondary
#AFB33A
accent
#EF38E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18147E

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

Preview Lab → · Contrast checker → · Palette generator →

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