#27176B#27176B

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

Color values

HEX#27176B
RGBrgb(39, 23, 107)
HSLhsl(251, 65%, 25%)
HSVhsv(251, 79%, 42%)
CMYKcmyk(63.6%, 78.5%, 0%, 58%)
CIE-LABlab(16.03, 32.85, -45.99)
CIE-LCHlch(16.03, 56.52, 305.53°)
OKLaboklab(29.06% 0.0297 -0.1326)
OKLCHoklch(29.06% 0.136 282.6)
XYZxyz(3.7961, 2.1054, 14.1134)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27176B #5B6B17
analogous
#17316B #27176B #51176B
triadic
#27176B #6B2717 #176B27
tetradic
#27176B #6B1731 #5B6B17 #176B51
square
#27176B #6B1731 #5B6B17 #176B51
split-complementary
#27176B #6B5117 #316B17
monochromatic
#090519 #150C39 #27176B #39229D #4C2DD0

Accessibility & contrast

On white

14.78
#27176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27176B
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27176B#FFFFFF#000000##FFFFFF
##27176B1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.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: #27176b;
/* rgb */ color: rgb(39, 23, 107);
/* oklch */ color: oklch(29.1% 0.136 282.6);
Tailwind
colors: {
  custom: {
    50: '#6b5696',
    500: '#27176b',
    950: '#000000',
  },
}
SCSS
$custom: #27176b;
$custom-light: #6b5696;
$custom-dark: #000000;
JSON
{
  "hex": "#27176b",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 251.429,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29062,
    "c": 0.13588,
    "h": 282.6
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#27176B
secondary
#8EA13D
accent
#E840C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #27176B

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

Preview Lab → · Contrast checker → · Palette generator →

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