#27176F#27176F

#27176F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.141 H 281.7°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#27176F
RGBrgb(39, 23, 111)
HSLhsl(251, 66%, 26%)
HSVhsv(251, 79%, 44%)
CMYKcmyk(64.9%, 79.3%, 0%, 56.5%)
CIE-LABlab(16.46, 34.16, -47.89)
CIE-LCHlch(16.46, 58.83, 305.50°)
OKLaboklab(29.49% 0.0286 -0.1381)
OKLCHoklch(29.49% 0.141 281.7)
XYZxyz(4.0114, 2.1915, 15.2475)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27176F #5F6F17
analogous
#17336F #27176F #53176F
triadic
#27176F #6F2717 #176F27
tetradic
#27176F #6F1733 #5F6F17 #176F53
square
#27176F #6F1733 #5F6F17 #176F53
split-complementary
#27176F #6F5317 #336F17
monochromatic
#090519 #150C3C #27176F #3922A2 #4B2DD3

Accessibility & contrast

On white

14.60
#27176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#27176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27176F
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27176F#FFFFFF#000000##FFFFFF
##27176F1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #27176f;
/* rgb */ color: rgb(39, 23, 111);
/* oklch */ color: oklch(29.5% 0.141 281.7);
Tailwind
colors: {
  custom: {
    50: '#6c5699',
    500: '#27176f',
    950: '#000000',
  },
}
SCSS
$custom: #27176f;
$custom-light: #6c5699;
$custom-dark: #000000;
JSON
{
  "hex": "#27176f",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 250.909,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29495,
    "c": 0.14107,
    "h": 281.7
  },
  "luminance": 0.02192
}

Semantic roles & 50–950 ramp

primary
#27176F
secondary
#92A53D
accent
#E93FCA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #27176F

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

Preview Lab → · Contrast checker → · Palette generator →

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