#18158E#18158E

#18158E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.185 H 270.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#18158E
RGBrgb(24, 21, 142)
HSLhsl(241, 74%, 32%)
HSVhsv(241, 85%, 56%)
CMYKcmyk(83.1%, 85.2%, 0%, 44.3%)
CIE-LABlab(18.73, 44.01, -63.91)
CIE-LCHlch(18.73, 77.60, 304.55°)
OKLaboklab(31.87% 0.0004 -0.185)
OKLCHoklch(31.87% 0.185 270.1)
XYZxyz(5.5257, 2.6829, 25.8126)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18158E #8B8E15
analogous
#154E8E #18158E #55158E
triadic
#18158E #8E1815 #158E18
tetradic
#18158E #8E154E #8B8E15 #158E55
square
#18158E #8E154E #8B8E15 #158E55
split-complementary
#18158E #8E5515 #4E8E15
monochromatic
#060523 #0F0D59 #18158E #211DC3 #3F3BE2

Accessibility & contrast

On white

13.66
#18158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18158E
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18158E#FFFFFF#000000##FFFFFF
##18158E1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18158e;
/* rgb */ color: rgb(24, 21, 142);
/* oklch */ color: oklch(31.9% 0.185 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e57b0',
    500: '#18158e',
    950: '#000000',
  },
}
SCSS
$custom: #18158e;
$custom-light: #6e57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18158e",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 241.488,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3187,
    "c": 0.18497,
    "h": 270.1
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#18158E
secondary
#BEC23D
accent
#F137EC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18158E

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

Preview Lab → · Contrast checker → · Palette generator →

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