#271C59#271C59

#271C59 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.105 H 285.8°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#271C59
RGBrgb(39, 28, 89)
HSLhsl(251, 52%, 23%)
HSVhsv(251, 69%, 35%)
CMYKcmyk(56.2%, 68.5%, 0%, 65.1%)
CIE-LABlab(15.40, 23.63, -35.10)
CIE-LCHlch(15.40, 42.32, 303.95°)
OKLaboklab(28.07% 0.0284 -0.1007)
OKLCHoklch(28.07% 0.105 285.8)
XYZxyz(3.0546, 1.9830, 9.6711)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C59 #4E591C
analogous
#1C2F59 #271C59 #451C59
triadic
#271C59 #59271C #1C5927
tetradic
#271C59 #591C2F #4E591C #1C5945
square
#271C59 #591C2F #4E591C #1C5945
split-complementary
#271C59 #59451C #2F591C
monochromatic
#0A0717 #130D2A #271C59 #3B2B88 #5039B6

Accessibility & contrast

On white

15.04
#271C59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271C59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271C59
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C59#FFFFFF#000000##FFFFFF
##271C591.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#132B37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271c59;
/* rgb */ color: rgb(39, 28, 89);
/* oklch */ color: oklch(28.1% 0.105 285.8);
Tailwind
colors: {
  custom: {
    50: '#675988',
    500: '#271c59',
    950: '#000000',
  },
}
SCSS
$custom: #271c59;
$custom-light: #675988;
$custom-dark: #000000;
JSON
{
  "hex": "#271c59",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 89
  },
  "hsl": {
    "h": 250.82,
    "s": 52.137,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28068,
    "c": 0.10461,
    "h": 285.8
  },
  "luminance": 0.01983
}

Semantic roles & 50–950 ramp

primary
#271C59
secondary
#818F42
accent
#DC4CC2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271C59

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

Preview Lab → · Contrast checker → · Palette generator →

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