#271C56#271C56

#271C56 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.100 H 286.6°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#271C56
RGBrgb(39, 28, 86)
HSLhsl(251, 51%, 22%)
HSVhsv(251, 67%, 34%)
CMYKcmyk(54.7%, 67.4%, 0%, 66.3%)
CIE-LABlab(15.13, 22.60, -33.51)
CIE-LCHlch(15.13, 40.41, 303.99°)
OKLaboklab(27.79% 0.0287 -0.096)
OKLCHoklch(27.79% 0.1 286.6)
XYZxyz(2.9312, 1.9336, 9.0211)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C56 #4B561C
analogous
#1C2E56 #271C56 #441C56
triadic
#271C56 #56271C #1C5627
tetradic
#271C56 #561C2E #4B561C #1C5644
square
#271C56 #561C2E #4B561C #1C5644
split-complementary
#271C56 #56441C #2E561C
monochromatic
#0A0817 #120D28 #271C56 #3C2B84 #513AB2

Accessibility & contrast

On white

15.14
#271C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#271C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C56
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C56#FFFFFF#000000##FFFFFF
##271C561.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#162A36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271c56;
/* rgb */ color: rgb(39, 28, 86);
/* oklch */ color: oklch(27.8% 0.100 286.6);
Tailwind
colors: {
  custom: {
    50: '#665886',
    500: '#271c56',
    950: '#000000',
  },
}
SCSS
$custom: #271c56;
$custom-light: #665886;
$custom-dark: #000000;
JSON
{
  "hex": "#271c56",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 86
  },
  "hsl": {
    "h": 251.379,
    "s": 50.877,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27794,
    "c": 0.10019,
    "h": 286.6
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#271C56
secondary
#7E8C42
accent
#DA4DC0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271C56

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

Preview Lab → · Contrast checker → · Palette generator →

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