#271058#271058

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

Color values

HEX#271058
RGBrgb(39, 16, 88)
HSLhsl(259, 69%, 20%)
HSVhsv(259, 82%, 35%)
CMYKcmyk(55.7%, 81.8%, 0%, 65.5%)
CIE-LABlab(12.65, 30.62, -38.92)
CIE-LCHlch(12.65, 49.52, 308.20°)
OKLaboklab(26.07% 0.041 -0.1118)
OKLCHoklch(26.07% 0.119 290.1)
XYZxyz(2.7829, 1.5064, 9.3748)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271058 #415810
analogous
#101D58 #271058 #4B1058
triadic
#271058 #582710 #105827
tetradic
#271058 #58101D #415810 #10584B
square
#271058 #58101D #415810 #10584B
split-complementary
#271058 #584B10 #1D5810
monochromatic
#0B051A #100724 #271058 #3E198C #5523C0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271058#FFFFFF#000000##FFFFFF
##2710581.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)
#00225A
Deuteranopia (green-blind)
#001F57
Tritanopia (blue-blind)
#152433
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271058;
/* rgb */ color: rgb(39, 16, 88);
/* oklch */ color: oklch(26.1% 0.119 290.1);
Tailwind
colors: {
  custom: {
    50: '#685188',
    500: '#271058',
    950: '#000000',
  },
}
SCSS
$custom: #271058;
$custom-light: #685188;
$custom-dark: #000000;
JSON
{
  "hex": "#271058",
  "rgb": {
    "r": 39,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 259.167,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26074,
    "c": 0.1191,
    "h": 290.1
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#271058
secondary
#739132
accent
#EC3CB4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #271058

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

Preview Lab → · Contrast checker → · Palette generator →

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