#271340#271340

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

Color values

HEX#271340
RGBrgb(39, 19, 64)
HSLhsl(267, 54%, 16%)
HSVhsv(267, 70%, 25%)
CMYKcmyk(39.1%, 70.3%, 0%, 74.9%)
CIE-LABlab(11.04, 21.35, -24.94)
CIE-LCHlch(11.04, 32.83, 310.56°)
OKLaboklab(24.23% 0.0423 -0.0708)
OKLCHoklch(24.23% 0.082 300.9)
XYZxyz(1.9948, 1.2672, 4.9890)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271340 #2C4013
analogous
#131640 #271340 #3E1340
triadic
#271340 #402713 #134027
tetradic
#271340 #401316 #2C4013 #13403E
square
#271340 #401316 #2C4013 #13403E
split-complementary
#271340 #403E13 #164013
monochromatic
#0E0718 #0E0718 #271340 #44216F #612F9E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271340#FFFFFF#000000##FFFFFF
##2713401.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)
#001D41
Deuteranopia (green-blind)
#051D3F
Tritanopia (blue-blind)
#221D27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #271340;
/* rgb */ color: rgb(39, 19, 64);
/* oklch */ color: oklch(24.2% 0.082 300.9);
Tailwind
colors: {
  custom: {
    50: '#635275',
    500: '#271340',
    950: '#000000',
  },
}
SCSS
$custom: #271340;
$custom-light: #635275;
$custom-dark: #000000;
JSON
{
  "hex": "#271340",
  "rgb": {
    "r": 39,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 266.667,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24232,
    "c": 0.08248,
    "h": 300.9
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#271340
secondary
#5B7936
accent
#DE4A9C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050208
muted
#7A787B

Preview Lab

Preview with #271340

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

Preview Lab → · Contrast checker → · Palette generator →

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