#271156#271156

#271156 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.115 H 290.6°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#271156
RGBrgb(39, 17, 86)
HSLhsl(259, 67%, 20%)
HSVhsv(259, 80%, 34%)
CMYKcmyk(54.7%, 80.2%, 0%, 66.3%)
CIE-LABlab(12.63, 29.45, -37.59)
CIE-LCHlch(12.63, 47.75, 308.08°)
OKLaboklab(26% 0.0406 -0.1079)
OKLCHoklch(26% 0.115 290.6)
XYZxyz(2.7164, 1.5040, 8.9495)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271156 #405611
analogous
#111E56 #271156 #491156
triadic
#271156 #562711 #115627
tetradic
#271156 #56111E #405611 #115649
square
#271156 #56111E #405611 #115649
split-complementary
#271156 #564911 #1E5611
monochromatic
#0C051A #100723 #271156 #3E1B89 #5525BC

Accessibility & contrast

On white

16.14
#271156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#271156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271156
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271156#FFFFFF#000000##FFFFFF
##2711561.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#172432
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271156;
/* rgb */ color: rgb(39, 17, 86);
/* oklch */ color: oklch(26.0% 0.115 290.6);
Tailwind
colors: {
  custom: {
    50: '#675186',
    500: '#271156',
    950: '#000000',
  },
}
SCSS
$custom: #271156;
$custom-light: #675186;
$custom-dark: #000000;
JSON
{
  "hex": "#271156",
  "rgb": {
    "r": 39,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 259.13,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26,
    "c": 0.11534,
    "h": 290.6
  },
  "luminance": 0.01504
}

Semantic roles & 50–950 ramp

primary
#271156
secondary
#728F34
accent
#EA3EB3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #271156

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

Preview Lab → · Contrast checker → · Palette generator →

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