#271148#271148

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

Color values

HEX#271148
RGBrgb(39, 17, 72)
HSLhsl(264, 62%, 17%)
HSVhsv(264, 76%, 28%)
CMYKcmyk(45.8%, 76.4%, 0%, 71.8%)
CIE-LABlab(11.28, 25.06, -30.18)
CIE-LCHlch(11.28, 39.23, 309.71°)
OKLaboklab(24.62% 0.044 -0.0862)
OKLCHoklch(24.62% 0.097 297)
XYZxyz(2.2065, 1.3001, 6.2643)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271148 #324811
analogous
#111648 #271148 #431148
triadic
#271148 #482711 #114827
tetradic
#271148 #481116 #324811 #114843
square
#271148 #481116 #324811 #114843
split-complementary
#271148 #484311 #164811
monochromatic
#0D0619 #0D0619 #271148 #421D7A #5D28AB

Accessibility & contrast

On white

16.67
#271148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271148
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271148#FFFFFF#000000##FFFFFF
##2711481.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271148;
/* rgb */ color: rgb(39, 17, 72);
/* oklch */ color: oklch(24.6% 0.097 297.0);
Tailwind
colors: {
  custom: {
    50: '#65517b',
    500: '#271148',
    950: '#000000',
  },
}
SCSS
$custom: #271148;
$custom-light: #65517b;
$custom-dark: #000000;
JSON
{
  "hex": "#271148",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 264,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24617,
    "c": 0.09676,
    "h": 297
  },
  "luminance": 0.013
}

Semantic roles & 50–950 ramp

primary
#271148
secondary
#628233
accent
#E543A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #271148

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

Preview Lab → · Contrast checker → · Palette generator →

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