#18148E#18148E

#18148E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.186 H 270.2°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#18148E
RGBrgb(24, 20, 142)
HSLhsl(242, 75%, 32%)
HSVhsv(242, 86%, 56%)
CMYKcmyk(83.1%, 85.9%, 0%, 44.3%)
CIE-LABlab(18.57, 44.47, -64.17)
CIE-LCHlch(18.57, 78.07, 304.73°)
OKLaboklab(31.76% 0.0006 -0.1857)
OKLCHoklch(31.76% 0.186 270.2)
XYZxyz(5.5077, 2.6469, 25.8066)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18148E #8A8E14
analogous
#144D8E #18148E #55148E
triadic
#18148E #8E1814 #148E18
tetradic
#18148E #8E144D #8A8E14 #148E55
square
#18148E #8E144D #8A8E14 #148E55
split-complementary
#18148E #8E5514 #4D8E14
monochromatic
#060523 #0F0C58 #18148E #211CC4 #3F39E3

Accessibility & contrast

On white

13.73
#18148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#18148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18148E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18148E#FFFFFF#000000##FFFFFF
##18148E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18148e;
/* rgb */ color: rgb(24, 20, 142);
/* oklch */ color: oklch(31.8% 0.186 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e56b0',
    500: '#18148e',
    950: '#000000',
  },
}
SCSS
$custom: #18148e;
$custom-light: #6e56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18148e",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 241.967,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31762,
    "c": 0.1857,
    "h": 270.2
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#18148E
secondary
#BDC23C
accent
#F236EC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18148E

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

Preview Lab → · Contrast checker → · Palette generator →

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