#271470#271470

#271470 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.145 H 282.1°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#271470
RGBrgb(39, 20, 112)
HSLhsl(252, 70%, 26%)
HSVhsv(252, 82%, 44%)
CMYKcmyk(65.2%, 82.1%, 0%, 56.1%)
CIE-LABlab(16.01, 36.10, -49.29)
CIE-LCHlch(16.01, 61.09, 306.22°)
OKLaboklab(29.21% 0.0304 -0.1422)
OKLCHoklch(29.21% 0.145 282.1)
XYZxyz(4.0106, 2.1012, 15.5203)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271470 #5D7014
analogous
#142F70 #271470 #551470
triadic
#271470 #702714 #147027
tetradic
#271470 #70142F #5D7014 #147055
square
#271470 #70142F #5D7014 #147055
split-complementary
#271470 #705514 #2F7014
monochromatic
#09051A #150B3C #271470 #391DA4 #4B27D8

Accessibility & contrast

On white

14.79
#271470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#271470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271470
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271470#FFFFFF#000000##FFFFFF
##2714701.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #271470;
/* rgb */ color: rgb(39, 20, 112);
/* oklch */ color: oklch(29.2% 0.145 282.1);
Tailwind
colors: {
  custom: {
    50: '#6c559a',
    500: '#271470',
    950: '#000000',
  },
}
SCSS
$custom: #271470;
$custom-light: #6c559a;
$custom-dark: #000000;
JSON
{
  "hex": "#271470",
  "rgb": {
    "r": 39,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 252.391,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29212,
    "c": 0.14537,
    "h": 282.1
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#271470
secondary
#90A639
accent
#ED3BC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #271470

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

Preview Lab → · Contrast checker → · Palette generator →

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