#271D41#271D41

#271D41 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.3% C 0.066 H 294.2°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#271D41
RGBrgb(39, 29, 65)
HSLhsl(257, 38%, 18%)
HSVhsv(257, 55%, 25%)
CMYKcmyk(40%, 55.4%, 0%, 74.5%)
CIE-LABlab(13.78, 14.78, -21.26)
CIE-LCHlch(13.78, 25.90, 304.81°)
OKLaboklab(26.27% 0.027 -0.06)
OKLCHoklch(26.27% 0.066 294.2)
XYZxyz(2.2300, 1.6917, 5.2090)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D41 #37411D
analogous
#1D2541 #271D41 #391D41
triadic
#271D41 #41271D #1D4127
tetradic
#271D41 #411D25 #37411D #1D4139
square
#271D41 #411D25 #37411D #1D4139
split-complementary
#271D41 #41391D #25411D
monochromatic
#0D0915 #0E0A17 #271D41 #40306B #5A4396

Accessibility & contrast

On white

15.69
#271D41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271D41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D41
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D41#FFFFFF#000000##FFFFFF
##271D411.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102442
Deuteranopia (green-blind)
#122340
Tritanopia (blue-blind)
#21242B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271d41;
/* rgb */ color: rgb(39, 29, 65);
/* oklch */ color: oklch(26.3% 0.066 294.2);
Tailwind
colors: {
  custom: {
    50: '#635976',
    500: '#271d41',
    950: '#000000',
  },
}
SCSS
$custom: #271d41;
$custom-light: #635976;
$custom-dark: #000000;
JSON
{
  "hex": "#271d41",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 65
  },
  "hsl": {
    "h": 256.667,
    "s": 38.298,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26273,
    "c": 0.06581,
    "h": 294.2
  },
  "luminance": 0.01692
}

Semantic roles & 50–950 ramp

primary
#271D41
secondary
#687644
accent
#CE5AAE
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050308
muted
#79787B

Preview Lab

Preview with #271D41

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

Preview Lab → · Contrast checker → · Palette generator →

#271D41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva