#271180#271180

#271180 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.167 H 279.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#271180
RGBrgb(39, 17, 128)
HSLhsl(252, 77%, 28%)
HSVhsv(252, 87%, 50%)
CMYKcmyk(69.5%, 86.7%, 0%, 49.8%)
CIE-LABlab(17.42, 42.47, -57.24)
CIE-LCHlch(17.42, 71.27, 306.57°)
OKLaboklab(30.74% 0.0265 -0.1653)
OKLCHoklch(30.74% 0.167 279.1)
XYZxyz(4.9322, 2.3903, 20.6193)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271180 #6A8011
analogous
#113280 #271180 #5E1180
triadic
#271180 #802711 #118027
tetradic
#271180 #801132 #6A8011 #11805E
square
#271180 #801132 #6A8011 #11805E
split-complementary
#271180 #805E11 #328011
monochromatic
#08041B #170A4A #271180 #3718B6 #4E29E3

Accessibility & contrast

On white

14.21
#271180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#271180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271180
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271180#FFFFFF#000000##FFFFFF
##2711801.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00267E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #271180;
/* rgb */ color: rgb(39, 17, 128);
/* oklch */ color: oklch(30.7% 0.167 279.1);
Tailwind
colors: {
  custom: {
    50: '#7054a6',
    500: '#271180',
    950: '#000000',
  },
}
SCSS
$custom: #271180;
$custom-light: #7054a6;
$custom-dark: #000000;
JSON
{
  "hex": "#271180",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 251.892,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30738,
    "c": 0.16738,
    "h": 279.1
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#271180
secondary
#9DB637
accent
#F335CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #271180

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

Preview Lab → · Contrast checker → · Palette generator →

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