#18138D#18138D

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

Color values

HEX#18138D
RGBrgb(24, 19, 141)
HSLhsl(242, 76%, 31%)
HSVhsv(242, 87%, 55%)
CMYKcmyk(83%, 86.5%, 0%, 44.7%)
CIE-LABlab(18.29, 44.61, -64.01)
CIE-LCHlch(18.29, 78.03, 304.87°)
OKLaboklab(31.53% 0.001 -0.1852)
OKLCHoklch(31.53% 0.185 270.3)
XYZxyz(5.4157, 2.5824, 25.4072)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18138D #888D13
analogous
#134B8D #18138D #55138D
triadic
#18138D #8D1813 #138D18
tetradic
#18138D #8D134B #888D13 #138D55
square
#18138D #8D134B #888D13 #138D55
split-complementary
#18138D #8D5513 #4B8D13
monochromatic
#060421 #0F0C57 #18138D #211AC3 #3E36E4

Accessibility & contrast

On white

13.85
#18138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18138D
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18138D#FFFFFF#000000##FFFFFF
##18138D1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18138d;
/* rgb */ color: rgb(24, 19, 141);
/* oklch */ color: oklch(31.5% 0.185 270.3);
Tailwind
colors: {
  custom: {
    50: '#6e56b0',
    500: '#18138d',
    950: '#000000',
  },
}
SCSS
$custom: #18138d;
$custom-light: #6e56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#18138d",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 242.459,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3153,
    "c": 0.18524,
    "h": 270.3
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18138D

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

Preview Lab → · Contrast checker → · Palette generator →

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