#271370#271370

#271370 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.146 H 282.2°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#271370
RGBrgb(39, 19, 112)
HSLhsl(253, 71%, 26%)
HSVhsv(253, 83%, 44%)
CMYKcmyk(65.2%, 83%, 0%, 56.1%)
CIE-LABlab(15.83, 36.61, -49.58)
CIE-LCHlch(15.83, 61.63, 306.44°)
OKLaboklab(29.09% 0.031 -0.143)
OKLCHoklch(29.09% 0.146 282.2)
XYZxyz(3.9933, 2.0666, 15.5146)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271370 #5C7013
analogous
#132D70 #271370 #551370
triadic
#271370 #702713 #137027
tetradic
#271370 #70132D #5C7013 #137055
square
#271370 #70132D #5C7013 #137055
split-complementary
#271370 #705513 #2D7013
monochromatic
#09041A #150A3C #271370 #391CA4 #4B25D9

Accessibility & contrast

On white

14.86
#271370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#271370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271370
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271370#FFFFFF#000000##FFFFFF
##2713701.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271370;
/* rgb */ color: rgb(39, 19, 112);
/* oklch */ color: oklch(29.1% 0.146 282.2);
Tailwind
colors: {
  custom: {
    50: '#6c549a',
    500: '#271370',
    950: '#000000',
  },
}
SCSS
$custom: #271370;
$custom-light: #6c549a;
$custom-dark: #000000;
JSON
{
  "hex": "#271370",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 252.903,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29089,
    "c": 0.14632,
    "h": 282.2
  },
  "luminance": 0.02067
}

Semantic roles & 50–950 ramp

primary
#271370
secondary
#8FA738
accent
#EE3AC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271370

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

Preview Lab → · Contrast checker → · Palette generator →

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