#26174F#26174F

#26174F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.098 H 290.3°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#26174F
RGBrgb(38, 23, 79)
HSLhsl(256, 55%, 20%)
HSVhsv(256, 71%, 31%)
CMYKcmyk(51.9%, 70.9%, 0%, 69%)
CIE-LABlab(13.16, 23.32, -31.95)
CIE-LCHlch(13.16, 39.56, 306.12°)
OKLaboklab(26.14% 0.0339 -0.0915)
OKLCHoklch(26.14% 0.098 290.3)
XYZxyz(2.5166, 1.5893, 7.5698)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26174F #404F17
analogous
#17244F #26174F #42174F
triadic
#26174F #4F2617 #174F26
tetradic
#26174F #4F1724 #404F17 #174F42
square
#26174F #4F1724 #404F17 #174F42
split-complementary
#26174F #4F4217 #244F17
monochromatic
#0B0718 #0F0920 #26174F #3D257E #5433AE

Accessibility & contrast

On white

15.94
#26174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#26174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26174F
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26174F#FFFFFF#000000##FFFFFF
##26174F1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#192430
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #26174f;
/* rgb */ color: rgb(38, 23, 79);
/* oklch */ color: oklch(26.1% 0.098 290.3);
Tailwind
colors: {
  custom: {
    50: '#655581',
    500: '#26174f',
    950: '#000000',
  },
}
SCSS
$custom: #26174f;
$custom-light: #655581;
$custom-dark: #000000;
JSON
{
  "hex": "#26174f",
  "rgb": {
    "r": 38,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 256.071,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26144,
    "c": 0.09755,
    "h": 290.3
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#26174F
secondary
#72863C
accent
#DE4AB6
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #26174F

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

Preview Lab → · Contrast checker → · Palette generator →

#26174F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva