#18148C#18148C

#18148C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.183 H 270.3°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#18148C
RGBrgb(24, 20, 140)
HSLhsl(242, 75%, 31%)
HSVhsv(242, 86%, 55%)
CMYKcmyk(82.9%, 85.7%, 0%, 45.1%)
CIE-LABlab(18.31, 43.84, -63.35)
CIE-LCHlch(18.31, 77.04, 304.69°)
OKLaboklab(31.51% 0.0011 -0.1833)
OKLCHoklch(31.51% 0.183 270.3)
XYZxyz(5.3589, 2.5873, 25.0228)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18148C #888C14
analogous
#144C8C #18148C #54148C
triadic
#18148C #8C1814 #148C18
tetradic
#18148C #8C144C #888C14 #148C54
square
#18148C #8C144C #888C14 #148C54
split-complementary
#18148C #8C5414 #4C8C14
monochromatic
#060521 #0F0C56 #18148C #211CC2 #3E38E3

Accessibility & contrast

On white

13.84
#18148C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#18148C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18148C
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18148C#FFFFFF#000000##FFFFFF
##18148C1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00268A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18148c;
/* rgb */ color: rgb(24, 20, 140);
/* oklch */ color: oklch(31.5% 0.183 270.3);
Tailwind
colors: {
  custom: {
    50: '#6e56af',
    500: '#18148c',
    950: '#000000',
  },
}
SCSS
$custom: #18148c;
$custom-light: #6e56af;
$custom-dark: #000000;
JSON
{
  "hex": "#18148c",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 140
  },
  "hsl": {
    "h": 242,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31508,
    "c": 0.18334,
    "h": 270.3
  },
  "luminance": 0.02588
}

Semantic roles & 50–950 ramp

primary
#18148C
secondary
#BCC03C
accent
#F236EB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #18148C

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

Preview Lab → · Contrast checker → · Palette generator →

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