#271F3D#271F3D

#271F3D is a dark, muted violet. Relative luminance 0.017; OKLCH L 26.4% C 0.055 H 294.6°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#271F3D
RGBrgb(39, 31, 61)
HSLhsl(256, 33%, 18%)
HSVhsv(256, 49%, 24%)
CMYKcmyk(36.1%, 49.2%, 0%, 76.1%)
CIE-LABlab(14.11, 12.05, -17.94)
CIE-LCHlch(14.11, 21.61, 303.89°)
OKLaboklab(26.44% 0.023 -0.0503)
OKLCHoklch(26.44% 0.055 294.6)
XYZxyz(2.1688, 1.7482, 4.6371)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F3D #353D1F
analogous
#1F263D #271F3D #361F3D
triadic
#271F3D #3D271F #1F3D27
tetradic
#271F3D #3D1F26 #353D1F #1F3D36
square
#271F3D #3D1F26 #353D1F #1F3D36
split-complementary
#271F3D #3D361F #263D1F
monochromatic
#0D0A14 #0D0A14 #271F3D #413466 #5B488E

Accessibility & contrast

On white

15.56
#271F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271F3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F3D
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F3D#FFFFFF#000000##FFFFFF
##271F3D1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16243E
Deuteranopia (green-blind)
#17233C
Tritanopia (blue-blind)
#22242B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271f3d;
/* rgb */ color: rgb(39, 31, 61);
/* oklch */ color: oklch(26.4% 0.055 294.6);
Tailwind
colors: {
  custom: {
    50: '#625a72',
    500: '#271f3d',
    950: '#000000',
  },
}
SCSS
$custom: #271f3d;
$custom-light: #625a72;
$custom-dark: #000000;
JSON
{
  "hex": "#271f3d",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 61
  },
  "hsl": {
    "h": 256,
    "s": 32.609,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26435,
    "c": 0.05533,
    "h": 294.6
  },
  "luminance": 0.01748
}

Semantic roles & 50–950 ramp

primary
#271F3D
secondary
#667147
accent
#C95FAD
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050308
muted
#79787B

Preview Lab

Preview with #271F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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