#271165#271165

#271165 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.135 H 285.5°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#271165
RGBrgb(39, 17, 101)
HSLhsl(256, 71%, 23%)
HSVhsv(256, 83%, 40%)
CMYKcmyk(61.4%, 83.2%, 0%, 60.4%)
CIE-LABlab(14.24, 34.17, -45.00)
CIE-LCHlch(14.24, 56.50, 307.21°)
OKLaboklab(27.61% 0.036 -0.1296)
OKLCHoklch(27.61% 0.135 285.5)
XYZxyz(3.3854, 1.7716, 12.4730)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271165 #4F6511
analogous
#112565 #271165 #511165
triadic
#271165 #652711 #116527
tetradic
#271165 #651125 #4F6511 #116551
square
#271165 #651125 #4F6511 #116551
split-complementary
#271165 #655111 #256511
monochromatic
#0A041A #130831 #271165 #3B1A99 #4F23CE

Accessibility & contrast

On white

15.51
#271165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271165
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271165#FFFFFF#000000##FFFFFF
##2711651.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002667
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#062A3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271165;
/* rgb */ color: rgb(39, 17, 101);
/* oklch */ color: oklch(27.6% 0.135 285.5);
Tailwind
colors: {
  custom: {
    50: '#6a5292',
    500: '#271165',
    950: '#000000',
  },
}
SCSS
$custom: #271165;
$custom-light: #6a5292;
$custom-dark: #000000;
JSON
{
  "hex": "#271165",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 255.714,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27611,
    "c": 0.13452,
    "h": 285.5
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#271165
secondary
#829D35
accent
#EE3ABF
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #271165

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

Preview Lab → · Contrast checker → · Palette generator →

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