#26176B#26176B

#26176B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.136 H 281.9°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#26176B
RGBrgb(38, 23, 107)
HSLhsl(251, 65%, 25%)
HSVhsv(251, 79%, 42%)
CMYKcmyk(64.5%, 78.5%, 0%, 58%)
CIE-LABlab(15.93, 32.71, -46.16)
CIE-LCHlch(15.93, 56.57, 305.32°)
OKLaboklab(28.97% 0.0281 -0.1331)
OKLCHoklch(28.97% 0.136 281.9)
XYZxyz(3.7587, 2.0861, 14.1117)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26176B #5C6B17
analogous
#17326B #26176B #50176B
triadic
#26176B #6B2617 #176B26
tetradic
#26176B #6B1732 #5C6B17 #176B50
square
#26176B #6B1732 #5C6B17 #176B50
split-complementary
#26176B #6B5017 #326B17
monochromatic
#090519 #140C39 #26176B #38229D #4A2DD0

Accessibility & contrast

On white

14.82
#26176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#26176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #26176B
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26176B#FFFFFF#000000##FFFFFF
##26176B1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #26176b;
/* rgb */ color: rgb(38, 23, 107);
/* oklch */ color: oklch(29.0% 0.136 281.9);
Tailwind
colors: {
  custom: {
    50: '#6a5696',
    500: '#26176b',
    950: '#000000',
  },
}
SCSS
$custom: #26176b;
$custom-light: #6a5696;
$custom-dark: #000000;
JSON
{
  "hex": "#26176b",
  "rgb": {
    "r": 38,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 250.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28969,
    "c": 0.13604,
    "h": 281.9
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#26176B
secondary
#8FA13D
accent
#E840CA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #26176B

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

Preview Lab → · Contrast checker → · Palette generator →

#26176B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva