#271A35#271A35

#271A35 is a very dark, muted violet. Relative luminance 0.014; OKLCH L 24.8% C 0.052 H 305.1°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#271A35
RGBrgb(39, 26, 53)
HSLhsl(269, 34%, 15%)
HSVhsv(269, 51%, 21%)
CMYKcmyk(26.4%, 50.9%, 0%, 79.2%)
CIE-LABlab(12.14, 13.18, -15.35)
CIE-LCHlch(12.14, 20.24, 310.65°)
OKLaboklab(24.79% 0.0301 -0.0428)
OKLCHoklch(24.79% 0.052 305.1)
XYZxyz(1.8486, 1.4272, 3.5456)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A35 #28351A
analogous
#1A1A35 #271A35 #341A35
triadic
#271A35 #35271A #1A3527
tetradic
#271A35 #351A1A #28351A #1A3534
square
#271A35 #351A1A #28351A #1A3534
split-complementary
#271A35 #35341A #1A351A
monochromatic
#0F0A15 #0F0A15 #271A35 #452E5E #634287

Accessibility & contrast

On white

16.34
#271A35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#271A35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A35
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A35#FFFFFF#000000##FFFFFF
##271A351.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131F36
Deuteranopia (green-blind)
#162034
Tritanopia (blue-blind)
#251E24
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271a35;
/* rgb */ color: rgb(39, 26, 53);
/* oklch */ color: oklch(24.8% 0.052 305.1);
Tailwind
colors: {
  custom: {
    50: '#62566c',
    500: '#271a35',
    950: '#000000',
  },
}
SCSS
$custom: #271a35;
$custom-light: #62566c;
$custom-dark: #000000;
JSON
{
  "hex": "#271a35",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 53
  },
  "hsl": {
    "h": 268.889,
    "s": 34.177,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2479,
    "c": 0.0523,
    "h": 305.1
  },
  "luminance": 0.01427
}

Semantic roles & 50–950 ramp

primary
#271A35
secondary
#566A41
accent
#CA5E96
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050307
muted
#79787A

Preview Lab

Preview with #271A35

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

Preview Lab → · Contrast checker → · Palette generator →

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