#271150#271150

#271150 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.107 H 293.1°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#271150
RGBrgb(39, 17, 80)
HSLhsl(261, 65%, 19%)
HSVhsv(261, 79%, 31%)
CMYKcmyk(51.2%, 78.8%, 0%, 68.6%)
CIE-LABlab(12.03, 27.56, -34.48)
CIE-LCHlch(12.03, 44.14, 308.64°)
OKLaboklab(25.39% 0.0422 -0.0988)
OKLCHoklch(25.39% 0.107 293.1)
XYZxyz(2.4847, 1.4113, 7.7294)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271150 #3A5011
analogous
#111B50 #271150 #471150
triadic
#271150 #502711 #115027
tetradic
#271150 #50111B #3A5011 #115047
square
#271150 #50111B #3A5011 #115047
split-complementary
#271150 #504711 #1B5011
monochromatic
#0C0519 #0E061E #271150 #401C82 #5826B5

Accessibility & contrast

On white

16.38
#271150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#271150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271150
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271150#FFFFFF#000000##FFFFFF
##2711501.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#001E4F
Tritanopia (blue-blind)
#1B212F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #271150;
/* rgb */ color: rgb(39, 17, 80);
/* oklch */ color: oklch(25.4% 0.107 293.1);
Tailwind
colors: {
  custom: {
    50: '#665182',
    500: '#271150',
    950: '#000000',
  },
}
SCSS
$custom: #271150;
$custom-light: #665182;
$custom-dark: #000000;
JSON
{
  "hex": "#271150",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 260.952,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25391,
    "c": 0.10747,
    "h": 293.1
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#271150
secondary
#6B8933
accent
#E840AD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #271150

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

Preview Lab → · Contrast checker → · Palette generator →

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