#271B59#271B59

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

Color values

HEX#271B59
RGBrgb(39, 27, 89)
HSLhsl(252, 53%, 23%)
HSVhsv(252, 70%, 35%)
CMYKcmyk(56.2%, 69.7%, 0%, 65.1%)
CIE-LABlab(15.15, 24.30, -35.51)
CIE-LCHlch(15.15, 43.02, 304.39°)
OKLaboklab(27.89% 0.0296 -0.1019)
OKLCHoklch(27.89% 0.106 286.2)
XYZxyz(3.0313, 1.9363, 9.6633)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B59 #4D591B
analogous
#1B2E59 #271B59 #461B59
triadic
#271B59 #59271B #1B5927
tetradic
#271B59 #591B2E #4D591B #1B5946
square
#271B59 #591B2E #4D591B #1B5946
split-complementary
#271B59 #59461B #2E591B
monochromatic
#0A0717 #120D2A #271B59 #3C2988 #5037B7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271B59#FFFFFF#000000##FFFFFF
##271B591.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)
#00285B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#142A37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271b59;
/* rgb */ color: rgb(39, 27, 89);
/* oklch */ color: oklch(27.9% 0.106 286.2);
Tailwind
colors: {
  custom: {
    50: '#675888',
    500: '#271b59',
    950: '#000000',
  },
}
SCSS
$custom: #271b59;
$custom-light: #675888;
$custom-dark: #000000;
JSON
{
  "hex": "#271b59",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 251.613,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27888,
    "c": 0.10607,
    "h": 286.2
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#271B59
secondary
#808F41
accent
#DD4BC1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271B59

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

Preview Lab → · Contrast checker → · Palette generator →

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