#271341#271341

#271341 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.084 H 300.2°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#271341
RGBrgb(39, 19, 65)
HSLhsl(266, 55%, 16%)
HSVhsv(266, 71%, 25%)
CMYKcmyk(40%, 70.8%, 0%, 74.5%)
CIE-LABlab(11.13, 21.66, -25.51)
CIE-LCHlch(11.13, 33.47, 310.32°)
OKLaboklab(24.32% 0.0423 -0.0725)
OKLCHoklch(24.32% 0.084 300.2)
XYZxyz(2.0235, 1.2787, 5.1402)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271341 #2D4113
analogous
#131641 #271341 #3E1341
triadic
#271341 #412713 #134127
tetradic
#271341 #411316 #2D4113 #13413E
square
#271341 #411316 #2D4113 #13413E
split-complementary
#271341 #413E13 #164113
monochromatic
#0E0718 #0E0718 #271341 #432170 #602FA0

Accessibility & contrast

On white

16.72
#271341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#271341 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271341
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271341#FFFFFF#000000##FFFFFF
##2713411.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E42
Deuteranopia (green-blind)
#031D40
Tritanopia (blue-blind)
#211D27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #271341;
/* rgb */ color: rgb(39, 19, 65);
/* oklch */ color: oklch(24.3% 0.084 300.2);
Tailwind
colors: {
  custom: {
    50: '#645276',
    500: '#271341',
    950: '#000000',
  },
}
SCSS
$custom: #271341;
$custom-light: #645276;
$custom-dark: #000000;
JSON
{
  "hex": "#271341",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 65
  },
  "hsl": {
    "h": 266.087,
    "s": 54.762,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24317,
    "c": 0.0839,
    "h": 300.2
  },
  "luminance": 0.01279
}

Semantic roles & 50–950 ramp

primary
#271341
secondary
#5C7A36
accent
#DE4A9E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #271341

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

Preview Lab → · Contrast checker → · Palette generator →

#271341 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva