#18138E#18138E

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

Color values

HEX#18138E
RGBrgb(24, 19, 142)
HSLhsl(242, 76%, 32%)
HSVhsv(242, 87%, 56%)
CMYKcmyk(83.1%, 86.6%, 0%, 44.3%)
CIE-LABlab(18.42, 44.92, -64.42)
CIE-LCHlch(18.42, 78.54, 304.89°)
OKLaboklab(31.66% 0.0008 -0.1864)
OKLCHoklch(31.66% 0.186 270.2)
XYZxyz(5.4904, 2.6123, 25.8008)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18138E #898E13
analogous
#134C8E #18138E #56138E
triadic
#18138E #8E1813 #138E18
tetradic
#18138E #8E134C #898E13 #138E56
square
#18138E #8E134C #898E13 #138E56
split-complementary
#18138E #8E5613 #4C8E13
monochromatic
#060522 #0F0C58 #18138E #211AC4 #3E37E4

Accessibility & contrast

On white

13.79
#18138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#18138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18138E
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18138E#FFFFFF#000000##FFFFFF
##18138E1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18138e;
/* rgb */ color: rgb(24, 19, 142);
/* oklch */ color: oklch(31.7% 0.186 270.2);
Tailwind
colors: {
  custom: {
    50: '#6e56b0',
    500: '#18138e',
    950: '#000000',
  },
}
SCSS
$custom: #18138e;
$custom-light: #6e56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18138e",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 242.439,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31658,
    "c": 0.18641,
    "h": 270.2
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

primary
#18138E
secondary
#BDC23B
accent
#F335EB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18138E

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

Preview Lab → · Contrast checker → · Palette generator →

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