#271042#271042

#271042 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.090 H 300.8°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#271042
RGBrgb(39, 16, 66)
HSLhsl(268, 61%, 16%)
HSVhsv(268, 76%, 26%)
CMYKcmyk(40.9%, 75.8%, 0%, 74.1%)
CIE-LABlab(10.52, 23.83, -27.20)
CIE-LCHlch(10.52, 36.16, 311.23°)
OKLaboklab(23.91% 0.0462 -0.0774)
OKLCHoklch(23.91% 0.09 300.8)
XYZxyz(2.0051, 1.1953, 5.2783)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271042 #2B4210
analogous
#101242 #271042 #401042
triadic
#271042 #422710 #104227
tetradic
#271042 #421012 #2B4210 #104240
square
#271042 #421012 #2B4210 #104240
split-complementary
#271042 #424010 #124210
monochromatic
#0F0619 #0F0619 #271042 #441C73 #6128A5

Accessibility & contrast

On white

16.95
#271042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#271042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271042
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271042#FFFFFF#000000##FFFFFF
##2710421.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#211B27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #271042;
/* rgb */ color: rgb(39, 16, 66);
/* oklch */ color: oklch(23.9% 0.090 300.8);
Tailwind
colors: {
  custom: {
    50: '#645077',
    500: '#271042',
    950: '#000000',
  },
}
SCSS
$custom: #271042;
$custom-light: #645077;
$custom-dark: #000000;
JSON
{
  "hex": "#271042",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 267.6,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.23908,
    "c": 0.09017,
    "h": 300.8
  },
  "luminance": 0.01195
}

Semantic roles & 50–950 ramp

primary
#271042
secondary
#5A7C32
accent
#E4449A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #271042

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

Preview Lab → · Contrast checker → · Palette generator →

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