#18138F#18138F

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

Color values

HEX#18138F
RGBrgb(24, 19, 143)
HSLhsl(242, 77%, 32%)
HSVhsv(242, 87%, 56%)
CMYKcmyk(83.2%, 86.7%, 0%, 43.9%)
CIE-LABlab(18.55, 45.24, -64.82)
CIE-LCHlch(18.55, 79.05, 304.91°)
OKLaboklab(31.79% 0.0005 -0.1876)
OKLCHoklch(31.79% 0.188 270.2)
XYZxyz(5.5658, 2.6425, 26.1980)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18138F #8A8F13
analogous
#134C8F #18138F #56138F
triadic
#18138F #8F1813 #138F18
tetradic
#18138F #8F134C #8A8F13 #138F56
square
#18138F #8F134C #8A8F13 #138F56
split-complementary
#18138F #8F5613 #4C8F13
monochromatic
#060523 #0F0C59 #18138F #211AC5 #3F38E5

Accessibility & contrast

On white

13.74
#18138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#18138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18138F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18138F#FFFFFF#000000##FFFFFF
##18138F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #18138f;
/* rgb */ color: rgb(24, 19, 143);
/* oklch */ color: oklch(31.8% 0.188 270.2);
Tailwind
colors: {
  custom: {
    50: '#6f56b1',
    500: '#18138f',
    950: '#000000',
  },
}
SCSS
$custom: #18138f;
$custom-light: #6f56b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18138f",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 242.419,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31786,
    "c": 0.18758,
    "h": 270.2
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18138F

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

Preview Lab → · Contrast checker → · Palette generator →

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