#271C4E#271C4E

#271C4E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.088 H 289.3°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#271C4E
RGBrgb(39, 28, 78)
HSLhsl(253, 47%, 21%)
HSVhsv(253, 64%, 31%)
CMYKcmyk(50%, 64.1%, 0%, 69.4%)
CIE-LABlab(14.47, 19.85, -29.15)
CIE-LCHlch(14.47, 35.27, 304.24°)
OKLaboklab(27.09% 0.0291 -0.0832)
OKLCHoklch(27.09% 0.088 289.3)
XYZxyz(2.6267, 1.8118, 7.4176)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C4E #434E1C
analogous
#1C2A4E #271C4E #401C4E
triadic
#271C4E #4E271C #1C4E27
tetradic
#271C4E #4E1C2A #434E1C #1C4E40
square
#271C4E #4E1C2A #434E1C #1C4E40
split-complementary
#271C4E #4E401C #2A4E1C
monochromatic
#0B0817 #100C21 #271C4E #3E2C7B #543CA8

Accessibility & contrast

On white

15.41
#271C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C4E
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C4E#FFFFFF#000000##FFFFFF
##271C4E1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#1B2731
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271c4e;
/* rgb */ color: rgb(39, 28, 78);
/* oklch */ color: oklch(27.1% 0.088 289.3);
Tailwind
colors: {
  custom: {
    50: '#655880',
    500: '#271c4e',
    950: '#000000',
  },
}
SCSS
$custom: #271c4e;
$custom-light: #655880;
$custom-dark: #000000;
JSON
{
  "hex": "#271c4e",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 253.2,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27094,
    "c": 0.08814,
    "h": 289.3
  },
  "luminance": 0.01812
}

Semantic roles & 50–950 ramp

primary
#271C4E
secondary
#758442
accent
#D751B9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271C4E

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

Preview Lab → · Contrast checker → · Palette generator →

#271C4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva