#271575#271575

#271575 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.151 H 280.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#271575
RGBrgb(39, 21, 117)
HSLhsl(251, 70%, 27%)
HSVhsv(251, 82%, 46%)
CMYKcmyk(66.7%, 82.1%, 0%, 54.1%)
CIE-LABlab(16.76, 37.17, -51.29)
CIE-LCHlch(16.76, 63.34, 305.93°)
OKLaboklab(29.9% 0.0282 -0.148)
OKLCHoklch(29.9% 0.151 280.8)
XYZxyz(4.3147, 2.2517, 17.0334)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271575 #637515
analogous
#153375 #271575 #571575
triadic
#271575 #752715 #157527
tetradic
#271575 #751533 #637515 #157557
square
#271575 #751533 #637515 #157557
split-complementary
#271575 #755715 #337515
monochromatic
#09051A #160C41 #271575 #381EA9 #4C2BD9

Accessibility & contrast

On white

14.48
#271575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#271575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271575
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271575#FFFFFF#000000##FFFFFF
##2715751.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002673
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271575;
/* rgb */ color: rgb(39, 21, 117);
/* oklch */ color: oklch(29.9% 0.151 280.8);
Tailwind
colors: {
  custom: {
    50: '#6d569e',
    500: '#271575',
    950: '#000000',
  },
}
SCSS
$custom: #271575;
$custom-light: #6d569e;
$custom-dark: #000000;
JSON
{
  "hex": "#271575",
  "rgb": {
    "r": 39,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 251.25,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29901,
    "c": 0.15067,
    "h": 280.8
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#271575
secondary
#96AB3B
accent
#EC3BCB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271575

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

Preview Lab → · Contrast checker → · Palette generator →

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