#271667#271667

#271667 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.132 H 283.9°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#271667
RGBrgb(39, 22, 103)
HSLhsl(253, 65%, 25%)
HSVhsv(253, 79%, 40%)
CMYKcmyk(62.1%, 78.6%, 0%, 59.6%)
CIE-LABlab(15.40, 32.10, -44.40)
CIE-LCHlch(15.40, 54.79, 305.87°)
OKLaboklab(28.49% 0.0316 -0.1279)
OKLCHoklch(28.49% 0.132 283.9)
XYZxyz(3.5710, 1.9842, 13.0241)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271667 #566716
analogous
#162D67 #271667 #501667
triadic
#271667 #672716 #166727
tetradic
#271667 #67162D #566716 #166750
square
#271667 #67162D #566716 #166750
split-complementary
#271667 #675016 #2D6716
monochromatic
#0A0519 #140B35 #271667 #3A2199 #4D2CCC

Accessibility & contrast

On white

15.03
#271667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271667
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271667#FFFFFF#000000##FFFFFF
##2716671.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#022D3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271667;
/* rgb */ color: rgb(39, 22, 103);
/* oklch */ color: oklch(28.5% 0.132 283.9);
Tailwind
colors: {
  custom: {
    50: '#6a5593',
    500: '#271667',
    950: '#000000',
  },
}
SCSS
$custom: #271667;
$custom-light: #6a5593;
$custom-dark: #000000;
JSON
{
  "hex": "#271667",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 252.593,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28492,
    "c": 0.13176,
    "h": 283.9
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#271667
secondary
#899E3B
accent
#E840C5
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #271667

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

Preview Lab → · Contrast checker → · Palette generator →

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