#271035#271035

#271035 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.8% C 0.072 H 310.6°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#271035
RGBrgb(39, 16, 53)
HSLhsl(277, 54%, 14%)
HSVhsv(277, 70%, 21%)
CMYKcmyk(26.4%, 69.8%, 0%, 79.2%)
CIE-LABlab(9.47, 20.04, -19.58)
CIE-LCHlch(9.47, 28.02, 315.68°)
OKLaboklab(22.82% 0.0472 -0.055)
OKLCHoklch(22.82% 0.072 310.6)
XYZxyz(1.6645, 1.0590, 3.4842)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271035 #1E3510
analogous
#141035 #271035 #351030
triadic
#271035 #352710 #103527
tetradic
#271035 #351410 #1E3510 #103035
square
#271035 #351410 #1E3510 #103035
split-complementary
#271035 #303510 #103514
monochromatic
#110718 #110718 #271035 #4A1E64 #6C2C93

Accessibility & contrast

On white

17.33
#271035 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#271035 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271035
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271035#FFFFFF#000000##FFFFFF
##2710351.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041936
Deuteranopia (green-blind)
#0C1B34
Tritanopia (blue-blind)
#251720
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #271035;
/* rgb */ color: rgb(39, 16, 53);
/* oklch */ color: oklch(22.8% 0.072 310.6);
Tailwind
colors: {
  custom: {
    50: '#634f6c',
    500: '#271035',
    950: '#000000',
  },
}
SCSS
$custom: #271035;
$custom-light: #634f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#271035",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 53
  },
  "hsl": {
    "h": 277.297,
    "s": 53.623,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22816,
    "c": 0.07249,
    "h": 310.6
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#271035
secondary
#496F32
accent
#DD4B82
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050207
muted
#79787A

Preview Lab

Preview with #271035

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

Preview Lab → · Contrast checker → · Palette generator →

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