#271C55#271C55

#271C55 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.099 H 287.0°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#271C55
RGBrgb(39, 28, 85)
HSLhsl(252, 50%, 22%)
HSVhsv(252, 67%, 33%)
CMYKcmyk(54.1%, 67.1%, 0%, 66.7%)
CIE-LABlab(15.05, 22.25, -32.97)
CIE-LCHlch(15.05, 39.78, 304.01°)
OKLaboklab(27.7% 0.0288 -0.0944)
OKLCHoklch(27.7% 0.099 287)
XYZxyz(2.8912, 1.9176, 8.8104)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C55 #4A551C
analogous
#1C2E55 #271C55 #441C55
triadic
#271C55 #55271C #1C5527
tetradic
#271C55 #551C2E #4A551C #1C5544
square
#271C55 #551C2E #4A551C #1C5544
split-complementary
#271C55 #55441C #2E551C
monochromatic
#0B0817 #120D27 #271C55 #3C2B83 #513AB1

Accessibility & contrast

On white

15.18
#271C55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271C55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C55
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C55#FFFFFF#000000##FFFFFF
##271C551.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#172935
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271c55;
/* rgb */ color: rgb(39, 28, 85);
/* oklch */ color: oklch(27.7% 0.099 287.0);
Tailwind
colors: {
  custom: {
    50: '#665885',
    500: '#271c55',
    950: '#000000',
  },
}
SCSS
$custom: #271c55;
$custom-light: #665885;
$custom-dark: #000000;
JSON
{
  "hex": "#271c55",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 85
  },
  "hsl": {
    "h": 251.579,
    "s": 50.442,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27704,
    "c": 0.09871,
    "h": 287
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#271C55
secondary
#7D8B42
accent
#DA4EBF
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271C55

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

Preview Lab → · Contrast checker → · Palette generator →

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