#271048#271048

#271048 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.098 H 297.4°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#271048
RGBrgb(39, 16, 72)
HSLhsl(265, 64%, 17%)
HSVhsv(265, 78%, 28%)
CMYKcmyk(45.8%, 77.8%, 0%, 71.8%)
CIE-LABlab(11.06, 25.66, -30.53)
CIE-LCHlch(11.06, 39.88, 310.05°)
OKLaboklab(24.46% 0.0452 -0.0872)
OKLCHoklch(24.46% 0.098 297.4)
XYZxyz(2.1914, 1.2698, 6.2593)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271048 #314810
analogous
#101548 #271048 #431048
triadic
#271048 #482710 #104827
tetradic
#271048 #481015 #314810 #104843
square
#271048 #481015 #314810 #104843
split-complementary
#271048 #484310 #154810
monochromatic
#0E0619 #0E0619 #271048 #421B7A #5D26AC

Accessibility & contrast

On white

16.75
#271048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#271048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271048
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271048#FFFFFF#000000##FFFFFF
##2710481.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001D47
Tritanopia (blue-blind)
#1F1E2A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #271048;
/* rgb */ color: rgb(39, 16, 72);
/* oklch */ color: oklch(24.5% 0.098 297.4);
Tailwind
colors: {
  custom: {
    50: '#65507b',
    500: '#271048',
    950: '#000000',
  },
}
SCSS
$custom: #271048;
$custom-light: #65507b;
$custom-dark: #000000;
JSON
{
  "hex": "#271048",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 264.643,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24464,
    "c": 0.09822,
    "h": 297.4
  },
  "luminance": 0.0127
}

Semantic roles & 50–950 ramp

primary
#271048
secondary
#618232
accent
#E741A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #271048

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

Preview Lab → · Contrast checker → · Palette generator →

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