#271D4C#271D4C

#271D4C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.083 H 289.4°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#271D4C
RGBrgb(39, 29, 76)
HSLhsl(253, 45%, 21%)
HSVhsv(253, 62%, 30%)
CMYKcmyk(48.7%, 61.8%, 0%, 70.2%)
CIE-LABlab(14.58, 18.47, -27.60)
CIE-LCHlch(14.58, 33.21, 303.78°)
OKLaboklab(27.13% 0.0278 -0.0786)
OKLCHoklch(27.13% 0.083 289.4)
XYZxyz(2.5802, 1.8318, 7.0537)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D4C #424C1D
analogous
#1D2A4C #271D4C #3E1D4C
triadic
#271D4C #4C271D #1D4C27
tetradic
#271D4C #4C1D2A #424C1D #1D4C3E
square
#271D4C #4C1D2A #424C1D #1D4C3E
split-complementary
#271D4C #4C3E1D #2A4C1D
monochromatic
#0B0816 #100C20 #271D4C #3E2E78 #543FA5

Accessibility & contrast

On white

15.37
#271D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D4C
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D4C#FFFFFF#000000##FFFFFF
##271D4C1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04264E
Deuteranopia (green-blind)
#05244B
Tritanopia (blue-blind)
#1C2731
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271d4c;
/* rgb */ color: rgb(39, 29, 76);
/* oklch */ color: oklch(27.1% 0.083 289.4);
Tailwind
colors: {
  custom: {
    50: '#64597e',
    500: '#271d4c',
    950: '#000000',
  },
}
SCSS
$custom: #271d4c;
$custom-light: #64597e;
$custom-dark: #000000;
JSON
{
  "hex": "#271d4c",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 76
  },
  "hsl": {
    "h": 252.766,
    "s": 44.762,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27126,
    "c": 0.08338,
    "h": 289.4
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#271D4C
secondary
#748144
accent
#D453B9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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