#271D4E#271D4E

#271D4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.3% C 0.086 H 288.7°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#271D4E
RGBrgb(39, 29, 78)
HSLhsl(252, 46%, 21%)
HSVhsv(252, 63%, 31%)
CMYKcmyk(50%, 62.8%, 0%, 69.4%)
CIE-LABlab(14.73, 19.15, -28.72)
CIE-LCHlch(14.73, 34.52, 303.70°)
OKLaboklab(27.29% 0.0278 -0.0819)
OKLCHoklch(27.29% 0.086 288.7)
XYZxyz(2.6508, 1.8600, 7.4256)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D4E #444E1D
analogous
#1D2B4E #271D4E #3F1D4E
triadic
#271D4E #4E271D #1D4E27
tetradic
#271D4E #4E1D2B #444E1D #1D4E3F
square
#271D4E #4E1D2B #444E1D #1D4E3F
split-complementary
#271D4E #4E3F1D #2B4E1D
monochromatic
#0B0816 #110C21 #271D4E #3D2E7B #543EA7

Accessibility & contrast

On white

15.31
#271D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D4E
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D4E#FFFFFF#000000##FFFFFF
##271D4E1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012650
Deuteranopia (green-blind)
#02244D
Tritanopia (blue-blind)
#1B2832
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271d4e;
/* rgb */ color: rgb(39, 29, 78);
/* oklch */ color: oklch(27.3% 0.086 288.7);
Tailwind
colors: {
  custom: {
    50: '#655980',
    500: '#271d4e',
    950: '#000000',
  },
}
SCSS
$custom: #271d4e;
$custom-light: #655980;
$custom-dark: #000000;
JSON
{
  "hex": "#271d4e",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 252.245,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27291,
    "c": 0.08649,
    "h": 288.7
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#271D4E
secondary
#768344
accent
#D552BB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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