#271352#271352

#271352 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.107 H 291.6°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#271352
RGBrgb(39, 19, 82)
HSLhsl(259, 62%, 20%)
HSVhsv(259, 77%, 32%)
CMYKcmyk(52.4%, 76.8%, 0%, 67.8%)
CIE-LABlab(12.65, 27.02, -34.84)
CIE-LCHlch(12.65, 44.09, 307.79°)
OKLaboklab(25.89% 0.0396 -0.0999)
OKLCHoklch(25.89% 0.107 291.6)
XYZxyz(2.5921, 1.5062, 8.1352)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271352 #3E5213
analogous
#131E52 #271352 #471352
triadic
#271352 #522713 #135227
tetradic
#271352 #52131E #3E5213 #135247
square
#271352 #52131E #3E5213 #135247
split-complementary
#271352 #524713 #1E5213
monochromatic
#0C0619 #0F0720 #271352 #3F1F84 #562AB5

Accessibility & contrast

On white

16.14
#271352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#271352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271352
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271352#FFFFFF#000000##FFFFFF
##2713521.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#192331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271352;
/* rgb */ color: rgb(39, 19, 82);
/* oklch */ color: oklch(25.9% 0.107 291.6);
Tailwind
colors: {
  custom: {
    50: '#665283',
    500: '#271352',
    950: '#000000',
  },
}
SCSS
$custom: #271352;
$custom-light: #665283;
$custom-dark: #000000;
JSON
{
  "hex": "#271352",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 259.048,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25887,
    "c": 0.10748,
    "h": 291.6
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#271352
secondary
#708A36
accent
#E542B2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271352

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

Preview Lab → · Contrast checker → · Palette generator →

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