#271677#271677

#271677 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.152 H 280.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#271677
RGBrgb(39, 22, 119)
HSLhsl(251, 69%, 28%)
HSVhsv(251, 82%, 47%)
CMYKcmyk(67.2%, 81.5%, 0%, 53.3%)
CIE-LABlab(17.16, 37.29, -51.90)
CIE-LCHlch(17.16, 63.91, 305.70°)
OKLaboklab(30.25% 0.027 -0.1498)
OKLCHoklch(30.25% 0.152 280.2)
XYZxyz(4.4523, 2.3367, 17.6656)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271677 #667716
analogous
#163677 #271677 #571677
triadic
#271677 #772716 #167727
tetradic
#271677 #771636 #667716 #167757
square
#271677 #771636 #667716 #167757
split-complementary
#271677 #775716 #367716
monochromatic
#08051A #160C43 #271677 #3820AB #4D2FD9

Accessibility & contrast

On white

14.31
#271677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#271677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271677
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271677#FFFFFF#000000##FFFFFF
##2716771.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #271677;
/* rgb */ color: rgb(39, 22, 119);
/* oklch */ color: oklch(30.3% 0.152 280.2);
Tailwind
colors: {
  custom: {
    50: '#6e569f',
    500: '#271677',
    950: '#000000',
  },
}
SCSS
$custom: #271677;
$custom-light: #6e569f;
$custom-dark: #000000;
JSON
{
  "hex": "#271677",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 250.515,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30252,
    "c": 0.15224,
    "h": 280.2
  },
  "luminance": 0.02337
}

Semantic roles & 50–950 ramp

primary
#271677
secondary
#99AC3C
accent
#EC3CCD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271677

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

Preview Lab → · Contrast checker → · Palette generator →

#271677 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva