#271671#271671

#271671 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.145 H 281.5°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#271671
RGBrgb(39, 22, 113)
HSLhsl(251, 67%, 26%)
HSVhsv(251, 81%, 44%)
CMYKcmyk(65.5%, 80.5%, 0%, 55.7%)
CIE-LABlab(16.49, 35.36, -49.14)
CIE-LCHlch(16.49, 60.54, 305.74°)
OKLaboklab(29.58% 0.0287 -0.1418)
OKLCHoklch(29.58% 0.145 281.5)
XYZxyz(4.1033, 2.1971, 15.8274)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271671 #607116
analogous
#163371 #271671 #551671
triadic
#271671 #712716 #167127
tetradic
#271671 #711633 #607116 #167155
square
#271671 #711633 #607116 #167155
split-complementary
#271671 #715516 #337116
monochromatic
#09051A #150C3E #271671 #3920A4 #4B2CD6

Accessibility & contrast

On white

14.59
#271671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271671
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271671#FFFFFF#000000##FFFFFF
##2716711.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271671;
/* rgb */ color: rgb(39, 22, 113);
/* oklch */ color: oklch(29.6% 0.145 281.5);
Tailwind
colors: {
  custom: {
    50: '#6c569b',
    500: '#271671',
    950: '#000000',
  },
}
SCSS
$custom: #271671;
$custom-light: #6c569b;
$custom-dark: #000000;
JSON
{
  "hex": "#271671",
  "rgb": {
    "r": 39,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 251.209,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.2958,
    "c": 0.14466,
    "h": 281.5
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#271671
secondary
#93A73C
accent
#EA3ECA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271671

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

Preview Lab → · Contrast checker → · Palette generator →

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