#271E4A#271E4A

#271E4A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.2% C 0.079 H 289.5°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#271E4A
RGBrgb(39, 30, 74)
HSLhsl(252, 42%, 20%)
HSVhsv(252, 59%, 29%)
CMYKcmyk(47.3%, 59.5%, 0%, 71%)
CIE-LABlab(14.70, 17.08, -26.03)
CIE-LCHlch(14.70, 31.13, 303.28°)
OKLaboklab(27.17% 0.0263 -0.074)
OKLCHoklch(27.17% 0.079 289.5)
XYZxyz(2.5367, 1.8542, 6.7015)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E4A #414A1E
analogous
#1E2B4A #271E4A #3D1E4A
triadic
#271E4A #4A271E #1E4A27
tetradic
#271E4A #4A1E2B #414A1E #1E4A3D
square
#271E4A #4A1E2B #414A1E #1E4A3D
split-complementary
#271E4A #4A3D1E #2B4A1E
monochromatic
#0B0916 #100C1E #271E4A #3E3076 #5541A1

Accessibility & contrast

On white

15.32
#271E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E4A
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E4A#FFFFFF#000000##FFFFFF
##271E4A1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09264C
Deuteranopia (green-blind)
#0A2449
Tritanopia (blue-blind)
#1D2730
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271e4a;
/* rgb */ color: rgb(39, 30, 74);
/* oklch */ color: oklch(27.2% 0.079 289.5);
Tailwind
colors: {
  custom: {
    50: '#645a7d',
    500: '#271e4a',
    950: '#000000',
  },
}
SCSS
$custom: #271e4a;
$custom-light: #645a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#271e4a",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 74
  },
  "hsl": {
    "h": 252.273,
    "s": 42.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27169,
    "c": 0.07851,
    "h": 289.5
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#271E4A
secondary
#737F45
accent
#D256B9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#050309
muted
#7A787B

Preview Lab

Preview with #271E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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