#18118E#18118E

#18118E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.5% C 0.188 H 270.3°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#18118E
RGBrgb(24, 17, 142)
HSLhsl(243, 79%, 31%)
HSVhsv(243, 88%, 56%)
CMYKcmyk(83.1%, 88%, 0%, 44.3%)
CIE-LABlab(18.13, 45.78, -64.90)
CIE-LCHlch(18.13, 79.42, 305.20°)
OKLaboklab(31.46% 0.0011 -0.1877)
OKLCHoklch(31.46% 0.188 270.3)
XYZxyz(5.4580, 2.5474, 25.7900)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18118E #878E11
analogous
#11488E #18118E #56118E
triadic
#18118E #8E1811 #118E18
tetradic
#18118E #8E1148 #878E11 #118E56
square
#18118E #8E1148 #878E11 #118E56
split-complementary
#18118E #8E5611 #488E11
monochromatic
#060421 #0F0A57 #18118E #2118C5 #3D33E7

Accessibility & contrast

On white

13.91
#18118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#18118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18118E
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18118E#FFFFFF#000000##FFFFFF
##18118E1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003291
Deuteranopia (green-blind)
#00268C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #18118e;
/* rgb */ color: rgb(24, 17, 142);
/* oklch */ color: oklch(31.5% 0.188 270.3);
Tailwind
colors: {
  custom: {
    50: '#6f55b1',
    500: '#18118e',
    950: '#000000',
  },
}
SCSS
$custom: #18118e;
$custom-light: #6f55b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18118e",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 243.36,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31461,
    "c": 0.18774,
    "h": 270.3
  },
  "luminance": 0.02548
}

Semantic roles & 50–950 ramp

primary
#18118E
secondary
#BBC238
accent
#F533EA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #18118E

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

Preview Lab → · Contrast checker → · Palette generator →

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