#271777#271777

#271777 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.151 H 280.0°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#271777
RGBrgb(39, 23, 119)
HSLhsl(250, 68%, 28%)
HSVhsv(250, 81%, 47%)
CMYKcmyk(67.2%, 80.7%, 0%, 53.3%)
CIE-LABlab(17.35, 36.77, -51.60)
CIE-LCHlch(17.35, 63.36, 305.47°)
OKLaboklab(30.38% 0.0264 -0.149)
OKLCHoklch(30.38% 0.151 280)
XYZxyz(4.4718, 2.3757, 17.6721)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271777 #677717
analogous
#173777 #271777 #571777
triadic
#271777 #772717 #177727
tetradic
#271777 #771737 #677717 #177757
square
#271777 #771737 #677717 #177757
split-complementary
#271777 #775717 #377717
monochromatic
#08051A #160D44 #271777 #3821AA #4D31D7

Accessibility & contrast

On white

14.24
#271777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271777
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271777#FFFFFF#000000##FFFFFF
##2717771.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271777;
/* rgb */ color: rgb(39, 23, 119);
/* oklch */ color: oklch(30.4% 0.151 280.0);
Tailwind
colors: {
  custom: {
    50: '#6d579f',
    500: '#271777',
    950: '#000000',
  },
}
SCSS
$custom: #271777;
$custom-light: #6d579f;
$custom-dark: #000000;
JSON
{
  "hex": "#271777",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 250,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3038,
    "c": 0.15127,
    "h": 280
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#271777
secondary
#9AAC3E
accent
#EA3DCE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #271777

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

Preview Lab → · Contrast checker → · Palette generator →

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