#271C57#271C57

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

Color values

HEX#271C57
RGBrgb(39, 28, 87)
HSLhsl(251, 51%, 23%)
HSVhsv(251, 68%, 34%)
CMYKcmyk(55.2%, 67.8%, 0%, 65.9%)
CIE-LABlab(15.22, 22.94, -34.04)
CIE-LCHlch(15.22, 41.05, 303.98°)
OKLaboklab(27.89% 0.0286 -0.0976)
OKLCHoklch(27.89% 0.102 286.3)
XYZxyz(2.9717, 1.9498, 9.2347)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C57 #4C571C
analogous
#1C2F57 #271C57 #441C57
triadic
#271C57 #57271C #1C5727
tetradic
#271C57 #571C2F #4C571C #1C5744
square
#271C57 #571C2F #4C571C #1C5744
split-complementary
#271C57 #57441C #2F571C
monochromatic
#0A0717 #120D29 #271C57 #3C2B85 #513AB4

Accessibility & contrast

On white

15.11
#271C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C57
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C57#FFFFFF#000000##FFFFFF
##271C571.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#152A36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271c57;
/* rgb */ color: rgb(39, 28, 87);
/* oklch */ color: oklch(27.9% 0.102 286.3);
Tailwind
colors: {
  custom: {
    50: '#665987',
    500: '#271c57',
    950: '#000000',
  },
}
SCSS
$custom: #271c57;
$custom-light: #665987;
$custom-dark: #000000;
JSON
{
  "hex": "#271c57",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 87
  },
  "hsl": {
    "h": 251.186,
    "s": 51.304,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27885,
    "c": 0.10167,
    "h": 286.3
  },
  "luminance": 0.0195
}

Semantic roles & 50–950 ramp

primary
#271C57
secondary
#7F8D42
accent
#DB4DC0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271C57

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

Preview Lab → · Contrast checker → · Palette generator →

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