#18148D#18148D

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

Color values

HEX#18148D
RGBrgb(24, 20, 141)
HSLhsl(242, 75%, 32%)
HSVhsv(242, 86%, 55%)
CMYKcmyk(83%, 85.8%, 0%, 44.7%)
CIE-LABlab(18.44, 44.16, -63.76)
CIE-LCHlch(18.44, 77.56, 304.71°)
OKLaboklab(31.64% 0.0008 -0.1845)
OKLCHoklch(31.64% 0.185 270.3)
XYZxyz(5.4329, 2.6170, 25.4129)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18148D #898D14
analogous
#144D8D #18148D #55148D
triadic
#18148D #8D1814 #148D18
tetradic
#18148D #8D144D #898D14 #148D55
square
#18148D #8D144D #898D14 #148D55
split-complementary
#18148D #8D5514 #4D8D14
monochromatic
#060522 #0F0C57 #18148D #211CC3 #3E39E3

Accessibility & contrast

On white

13.78
#18148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18148D
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18148D#FFFFFF#000000##FFFFFF
##18148D1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18148d;
/* rgb */ color: rgb(24, 20, 141);
/* oklch */ color: oklch(31.6% 0.185 270.3);
Tailwind
colors: {
  custom: {
    50: '#6e56b0',
    500: '#18148d',
    950: '#000000',
  },
}
SCSS
$custom: #18148d;
$custom-light: #6e56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18148d",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 241.983,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31635,
    "c": 0.18453,
    "h": 270.3
  },
  "luminance": 0.02618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18148D

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

Preview Lab → · Contrast checker → · Palette generator →

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