#271771#271771

#271771 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.144 H 281.3°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#271771
RGBrgb(39, 23, 113)
HSLhsl(251, 66%, 27%)
HSVhsv(251, 80%, 44%)
CMYKcmyk(65.5%, 79.6%, 0%, 55.7%)
CIE-LABlab(16.68, 34.82, -48.83)
CIE-LCHlch(16.68, 59.97, 305.49°)
OKLaboklab(29.71% 0.0281 -0.1409)
OKLCHoklch(29.71% 0.144 281.3)
XYZxyz(4.1228, 2.2361, 15.8339)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271771 #617117
analogous
#173471 #271771 #541771
triadic
#271771 #712717 #177127
tetradic
#271771 #711734 #617117 #177154
square
#271771 #711734 #617117 #177154
split-complementary
#271771 #715417 #347117
monochromatic
#090519 #150D3E #271771 #3921A4 #4C2ED4

Accessibility & contrast

On white

14.51
#271771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271771
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271771#FFFFFF#000000##FFFFFF
##2717711.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271771;
/* rgb */ color: rgb(39, 23, 113);
/* oklch */ color: oklch(29.7% 0.144 281.3);
Tailwind
colors: {
  custom: {
    50: '#6c569b',
    500: '#271771',
    950: '#000000',
  },
}
SCSS
$custom: #271771;
$custom-light: #6c569b;
$custom-dark: #000000;
JSON
{
  "hex": "#271771",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 250.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29714,
    "c": 0.14364,
    "h": 281.3
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#271771
secondary
#94A73D
accent
#E93FCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271771

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

Preview Lab → · Contrast checker → · Palette generator →

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