#18115E#18115E

#18115E is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.4% C 0.128 H 276.2°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#18115E
RGBrgb(24, 17, 94)
HSLhsl(245, 69%, 22%)
HSVhsv(245, 82%, 37%)
CMYKcmyk(74.5%, 81.9%, 0%, 63.1%)
CIE-LABlab(11.98, 30.00, -44.12)
CIE-LCHlch(11.98, 53.35, 304.22°)
OKLaboklab(25.43% 0.0139 -0.1275)
OKLCHoklch(25.43% 0.128 276.2)
XYZxyz(2.5969, 1.4030, 10.7215)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18115E #575E11
analogous
#11315E #18115E #3F115E
triadic
#18115E #5E1811 #115E18
tetradic
#18115E #5E1131 #575E11 #115E3F
square
#18115E #5E1131 #575E11 #115E3F
split-complementary
#18115E #5E3F11 #315E11
monochromatic
#07051A #0B082A #18115E #251A92 #3224C6

Accessibility & contrast

On white

16.40
#18115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#18115E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18115E
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18115E#FFFFFF#000000##FFFFFF
##18115E1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002360
Deuteranopia (green-blind)
#001C5D
Tritanopia (blue-blind)
#002837
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #18115e;
/* rgb */ color: rgb(24, 17, 94);
/* oklch */ color: oklch(25.4% 0.128 276.2);
Tailwind
colors: {
  custom: {
    50: '#61518d',
    500: '#18115e',
    950: '#000000',
  },
}
SCSS
$custom: #18115e;
$custom-light: #61518d;
$custom-dark: #000000;
JSON
{
  "hex": "#18115e",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 245.455,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25429,
    "c": 0.12828,
    "h": 276.2
  },
  "luminance": 0.01403
}

Semantic roles & 50–950 ramp

primary
#18115E
secondary
#8E9734
accent
#EC3CDC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18115E

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

Preview Lab → · Contrast checker → · Palette generator →

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