#271046#271046

#271046 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.096 H 298.5°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#271046
RGBrgb(39, 16, 70)
HSLhsl(266, 63%, 17%)
HSVhsv(266, 77%, 27%)
CMYKcmyk(44.3%, 77.1%, 0%, 72.5%)
CIE-LABlab(10.88, 25.05, -29.43)
CIE-LCHlch(10.88, 38.65, 310.40°)
OKLaboklab(24.28% 0.0456 -0.084)
OKLCHoklch(24.28% 0.096 298.5)
XYZxyz(2.1272, 1.2441, 5.9212)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271046 #2F4610
analogous
#101446 #271046 #421046
triadic
#271046 #462710 #104627
tetradic
#271046 #461014 #2F4610 #104642
square
#271046 #461014 #2F4610 #104642
split-complementary
#271046 #464210 #144610
monochromatic
#0E0619 #0E0619 #271046 #431B78 #5F27AA

Accessibility & contrast

On white

16.82
#271046 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#271046 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271046
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271046#FFFFFF#000000##FFFFFF
##2710461.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#001D45
Tritanopia (blue-blind)
#201D29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #271046;
/* rgb */ color: rgb(39, 16, 70);
/* oklch */ color: oklch(24.3% 0.096 298.5);
Tailwind
colors: {
  custom: {
    50: '#65507a',
    500: '#271046',
    950: '#000000',
  },
}
SCSS
$custom: #271046;
$custom-light: #65507a;
$custom-dark: #000000;
JSON
{
  "hex": "#271046",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 70
  },
  "hsl": {
    "h": 265.556,
    "s": 62.791,
    "l": 16.863
  },
  "oklch": {
    "l": 0.24276,
    "c": 0.09555,
    "h": 298.5
  },
  "luminance": 0.01244
}

Semantic roles & 50–950 ramp

primary
#271046
secondary
#5F8032
accent
#E642A0
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #271046

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

Preview Lab → · Contrast checker → · Palette generator →

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