#271375#271375

#271375 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.152 H 281.1°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#271375
RGBrgb(39, 19, 117)
HSLhsl(252, 72%, 27%)
HSVhsv(252, 84%, 46%)
CMYKcmyk(66.7%, 83.8%, 0%, 54.1%)
CIE-LABlab(16.41, 38.18, -51.86)
CIE-LCHlch(16.41, 64.40, 306.36°)
OKLaboklab(29.66% 0.0293 -0.1497)
OKLCHoklch(29.66% 0.153 281.1)
XYZxyz(4.2794, 2.1811, 17.0217)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271375 #617513
analogous
#133075 #271375 #581375
triadic
#271375 #752713 #137527
tetradic
#271375 #751330 #617513 #137558
square
#271375 #751330 #617513 #137558
split-complementary
#271375 #755813 #307513
monochromatic
#09041A #150A40 #271375 #391CAA #4C27DC

Accessibility & contrast

On white

14.62
#271375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#271375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271375
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271375#FFFFFF#000000##FFFFFF
##2713751.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #271375;
/* rgb */ color: rgb(39, 19, 117);
/* oklch */ color: oklch(29.7% 0.152 281.1);
Tailwind
colors: {
  custom: {
    50: '#6d559e',
    500: '#271375',
    950: '#000000',
  },
}
SCSS
$custom: #271375;
$custom-light: #6d559e;
$custom-dark: #000000;
JSON
{
  "hex": "#271375",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 252.245,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29661,
    "c": 0.1525,
    "h": 281.1
  },
  "luminance": 0.02181
}

Semantic roles & 50–950 ramp

primary
#271375
secondary
#94AB38
accent
#EF39CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #271375

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

Preview Lab → · Contrast checker → · Palette generator →

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