#271049#271049

#271049 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.100 H 296.8°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#271049
RGBrgb(39, 16, 73)
HSLhsl(264, 64%, 17%)
HSVhsv(264, 78%, 29%)
CMYKcmyk(46.6%, 78.1%, 0%, 71.4%)
CIE-LABlab(11.16, 25.97, -31.07)
CIE-LCHlch(11.16, 40.50, 309.88°)
OKLaboklab(24.56% 0.0449 -0.0888)
OKLCHoklch(24.56% 0.1 296.8)
XYZxyz(2.2243, 1.2829, 6.4325)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271049 #324910
analogous
#101549 #271049 #441049
triadic
#271049 #492710 #104927
tetradic
#271049 #491015 #324910 #104944
square
#271049 #491015 #324910 #104944
split-complementary
#271049 #494410 #154910
monochromatic
#0D0619 #0D0619 #271049 #421B7B #5D26AD

Accessibility & contrast

On white

16.71
#271049 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#271049 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271049
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271049#FFFFFF#000000##FFFFFF
##2710491.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4B
Deuteranopia (green-blind)
#001D48
Tritanopia (blue-blind)
#1E1E2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #271049;
/* rgb */ color: rgb(39, 16, 73);
/* oklch */ color: oklch(24.6% 0.100 296.8);
Tailwind
colors: {
  custom: {
    50: '#65507c',
    500: '#271049',
    950: '#000000',
  },
}
SCSS
$custom: #271049;
$custom-light: #65507c;
$custom-dark: #000000;
JSON
{
  "hex": "#271049",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 73
  },
  "hsl": {
    "h": 264.211,
    "s": 64.045,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24559,
    "c": 0.09955,
    "h": 296.8
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#271049
secondary
#628332
accent
#E741A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #271049

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

Preview Lab → · Contrast checker → · Palette generator →

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