#271D4F#271D4F

#271D4F is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.4% C 0.088 H 288.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#271D4F
RGBrgb(39, 29, 79)
HSLhsl(252, 46%, 21%)
HSVhsv(252, 63%, 31%)
CMYKcmyk(50.6%, 63.3%, 0%, 69%)
CIE-LABlab(14.81, 19.49, -29.28)
CIE-LCHlch(14.81, 35.17, 303.66°)
OKLaboklab(27.38% 0.0278 -0.0835)
OKLCHoklch(27.38% 0.088 288.4)
XYZxyz(2.6869, 1.8745, 7.6159)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D4F #454F1D
analogous
#1D2C4F #271D4F #401D4F
triadic
#271D4F #4F271D #1D4F27
tetradic
#271D4F #4F1D2C #454F1D #1D4F40
square
#271D4F #4F1D2C #454F1D #1D4F40
split-complementary
#271D4F #4F401D #2C4F1D
monochromatic
#0B0816 #110D22 #271D4F #3D2D7C #533EA9

Accessibility & contrast

On white

15.27
#271D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D4F
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D4F#FFFFFF#000000##FFFFFF
##271D4F1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#01244E
Tritanopia (blue-blind)
#1A2832
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271d4f;
/* rgb */ color: rgb(39, 29, 79);
/* oklch */ color: oklch(27.4% 0.088 288.4);
Tailwind
colors: {
  custom: {
    50: '#655981',
    500: '#271d4f',
    950: '#000000',
  },
}
SCSS
$custom: #271d4f;
$custom-light: #655981;
$custom-dark: #000000;
JSON
{
  "hex": "#271d4f",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 79
  },
  "hsl": {
    "h": 252,
    "s": 46.296,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27375,
    "c": 0.08803,
    "h": 288.4
  },
  "luminance": 0.01875
}

Semantic roles & 50–950 ramp

primary
#271D4F
secondary
#778444
accent
#D652BC
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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