#18138C#18138C

#18138C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.184 H 270.4°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#18138C
RGBrgb(24, 19, 140)
HSLhsl(242, 76%, 31%)
HSVhsv(242, 86%, 55%)
CMYKcmyk(82.9%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.16, 44.30, -63.61)
CIE-LCHlch(18.16, 77.51, 304.85°)
OKLaboklab(31.4% 0.0012 -0.1841)
OKLCHoklch(31.4% 0.184 270.4)
XYZxyz(5.3416, 2.5528, 25.0171)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18138C #878C13
analogous
#134A8C #18138C #54138C
triadic
#18138C #8C1813 #138C18
tetradic
#18138C #8C134A #878C13 #138C54
square
#18138C #8C134A #878C13 #138C54
split-complementary
#18138C #8C5413 #4A8C13
monochromatic
#060420 #0F0C56 #18138C #211AC2 #3D36E4

Accessibility & contrast

On white

13.90
#18138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#18138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18138C
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18138C#FFFFFF#000000##FFFFFF
##18138C1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00268A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18138c;
/* rgb */ color: rgb(24, 19, 140);
/* oklch */ color: oklch(31.4% 0.184 270.4);
Tailwind
colors: {
  custom: {
    50: '#6e55af',
    500: '#18138c',
    950: '#000000',
  },
}
SCSS
$custom: #18138c;
$custom-light: #6e55af;
$custom-dark: #000000;
JSON
{
  "hex": "#18138c",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 242.479,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31402,
    "c": 0.18406,
    "h": 270.4
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#18138C
secondary
#BBC03B
accent
#F335EB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #18138C

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

Preview Lab → · Contrast checker → · Palette generator →

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