#271E4D#271E4D

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

Color values

HEX#271E4D
RGBrgb(39, 30, 77)
HSLhsl(251, 44%, 21%)
HSVhsv(251, 61%, 30%)
CMYKcmyk(49.4%, 61%, 0%, 69.8%)
CIE-LABlab(14.93, 18.11, -27.72)
CIE-LCHlch(14.93, 33.11, 303.15°)
OKLaboklab(27.41% 0.0264 -0.079)
OKLCHoklch(27.41% 0.083 288.5)
XYZxyz(2.6401, 1.8956, 7.2465)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E4D #444D1E
analogous
#1E2C4D #271E4D #3E1E4D
triadic
#271E4D #4D271E #1E4D27
tetradic
#271E4D #4D1E2C #444D1E #1E4D3E
square
#271E4D #4D1E2C #444D1E #1E4D3E
split-complementary
#271E4D #4D3E1E #2C4D1E
monochromatic
#0B0916 #110D21 #271E4D #3D2F79 #5440A5

Accessibility & contrast

On white

15.23
#271E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E4D
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E4D#FFFFFF#000000##FFFFFF
##271E4D1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05274F
Deuteranopia (green-blind)
#06244C
Tritanopia (blue-blind)
#1B2832
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271e4d;
/* rgb */ color: rgb(39, 30, 77);
/* oklch */ color: oklch(27.4% 0.083 288.5);
Tailwind
colors: {
  custom: {
    50: '#645a7f',
    500: '#271e4d',
    950: '#000000',
  },
}
SCSS
$custom: #271e4d;
$custom-light: #645a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#271e4d",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 77
  },
  "hsl": {
    "h": 251.489,
    "s": 43.925,
    "l": 20.98
  },
  "oklch": {
    "l": 0.2741,
    "c": 0.08326,
    "h": 288.5
  },
  "luminance": 0.01896
}

Semantic roles & 50–950 ramp

primary
#271E4D
secondary
#768245
accent
#D454BB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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