#271D4D#271D4D

#271D4D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.085 H 289.1°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#271D4D
RGBrgb(39, 29, 77)
HSLhsl(253, 45%, 21%)
HSVhsv(253, 62%, 30%)
CMYKcmyk(49.4%, 62.3%, 0%, 69.8%)
CIE-LABlab(14.66, 18.81, -28.16)
CIE-LCHlch(14.66, 33.87, 303.74°)
OKLaboklab(27.21% 0.0278 -0.0803)
OKLCHoklch(27.21% 0.085 289.1)
XYZxyz(2.6152, 1.8458, 7.2382)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D4D #434D1D
analogous
#1D2B4D #271D4D #3F1D4D
triadic
#271D4D #4D271D #1D4D27
tetradic
#271D4D #4D1D2B #434D1D #1D4D3F
square
#271D4D #4D1D2B #434D1D #1D4D3F
split-complementary
#271D4D #4D3F1D #2B4D1D
monochromatic
#0B0816 #100C21 #271D4D #3E2E79 #543EA6

Accessibility & contrast

On white

15.34
#271D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271D4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D4D
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D4D#FFFFFF#000000##FFFFFF
##271D4D1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03264F
Deuteranopia (green-blind)
#04244C
Tritanopia (blue-blind)
#1B2831
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271d4d;
/* rgb */ color: rgb(39, 29, 77);
/* oklch */ color: oklch(27.2% 0.085 289.1);
Tailwind
colors: {
  custom: {
    50: '#64597f',
    500: '#271d4d',
    950: '#000000',
  },
}
SCSS
$custom: #271d4d;
$custom-light: #64597f;
$custom-dark: #000000;
JSON
{
  "hex": "#271d4d",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 77
  },
  "hsl": {
    "h": 252.5,
    "s": 45.283,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27208,
    "c": 0.08494,
    "h": 289.1
  },
  "luminance": 0.01846
}

Semantic roles & 50–950 ramp

primary
#271D4D
secondary
#758244
accent
#D553BA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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