#26117E#26117E

#26117E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.165 H 278.9°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#26117E
RGBrgb(38, 17, 126)
HSLhsl(252, 76%, 28%)
HSVhsv(252, 87%, 49%)
CMYKcmyk(69.8%, 86.5%, 0%, 50.6%)
CIE-LABlab(17.08, 41.78, -56.53)
CIE-LCHlch(17.08, 70.29, 306.47°)
OKLaboklab(30.41% 0.0256 -0.1632)
OKLCHoklch(30.41% 0.165 278.9)
XYZxyz(4.7645, 2.3189, 19.9311)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26117E #697E11
analogous
#11327E #26117E #5D117E
triadic
#26117E #7E2611 #117E26
tetradic
#26117E #7E1132 #697E11 #117E5D
square
#26117E #7E1132 #697E11 #117E5D
split-complementary
#26117E #7E5D11 #327E11
monochromatic
#08041B #160A48 #26117E #3618B4 #4B27E2

Accessibility & contrast

On white

14.35
#26117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#26117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26117E
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26117E#FFFFFF#000000##FFFFFF
##26117E1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #26117e;
/* rgb */ color: rgb(38, 17, 126);
/* oklch */ color: oklch(30.4% 0.165 278.9);
Tailwind
colors: {
  custom: {
    50: '#6f54a5',
    500: '#26117e',
    950: '#000000',
  },
}
SCSS
$custom: #26117e;
$custom-light: #6f54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#26117e",
  "rgb": {
    "r": 38,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 251.56,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30414,
    "c": 0.16521,
    "h": 278.9
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#26117E
secondary
#9CB437
accent
#F335CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #26117E

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

Preview Lab → · Contrast checker → · Palette generator →

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