#26118E#26118E

#26118E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.184 H 276.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#26118E
RGBrgb(38, 17, 142)
HSLhsl(250, 79%, 31%)
HSVhsv(250, 88%, 56%)
CMYKcmyk(73.2%, 88%, 0%, 44.3%)
CIE-LABlab(19.08, 46.56, -63.30)
CIE-LCHlch(19.08, 78.57, 306.34°)
OKLaboklab(32.36% 0.02 -0.1829)
OKLCHoklch(32.36% 0.184 276.3)
XYZxyz(5.8807, 2.7654, 25.8098)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26118E #798E11
analogous
#113A8E #26118E #64118E
triadic
#26118E #8E2611 #118E26
tetradic
#26118E #8E113A #798E11 #118E64
square
#26118E #8E113A #798E11 #118E64
split-complementary
#26118E #8E6411 #3A8E11
monochromatic
#090421 #170A57 #26118E #3518C5 #5133E7

Accessibility & contrast

On white

13.52
#26118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#26118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26118E
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26118E#FFFFFF#000000##FFFFFF
##26118E1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #26118e;
/* rgb */ color: rgb(38, 17, 142);
/* oklch */ color: oklch(32.4% 0.184 276.3);
Tailwind
colors: {
  custom: {
    50: '#7356b0',
    500: '#26118e',
    950: '#000000',
  },
}
SCSS
$custom: #26118e;
$custom-light: #7356b0;
$custom-dark: #000000;
JSON
{
  "hex": "#26118e",
  "rgb": {
    "r": 38,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 250.08,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32358,
    "c": 0.18395,
    "h": 276.3
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#26118E
secondary
#ABC238
accent
#F533D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #26118E

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

Preview Lab → · Contrast checker → · Palette generator →

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