#271E48#271E48

#271E48 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.075 H 290.3°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#271E48
RGBrgb(39, 30, 72)
HSLhsl(253, 41%, 20%)
HSVhsv(253, 58%, 28%)
CMYKcmyk(45.8%, 58.3%, 0%, 71.8%)
CIE-LABlab(14.56, 16.40, -24.89)
CIE-LCHlch(14.56, 29.81, 303.39°)
OKLaboklab(27.01% 0.0261 -0.0706)
OKLCHoklch(27.01% 0.075 290.3)
XYZxyz(2.4704, 1.8277, 6.3523)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E48 #3F481E
analogous
#1E2A48 #271E48 #3C1E48
triadic
#271E48 #48271E #1E4827
tetradic
#271E48 #481E2A #3F481E #1E483C
square
#271E48 #481E2A #3F481E #1E483C
split-complementary
#271E48 #483C1E #2A481E
monochromatic
#0C0916 #100C1D #271E48 #3E3073 #56429E

Accessibility & contrast

On white

15.38
#271E48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E48
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E48#FFFFFF#000000##FFFFFF
##271E481.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2649
Deuteranopia (green-blind)
#0D2447
Tritanopia (blue-blind)
#1E272F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271e48;
/* rgb */ color: rgb(39, 30, 72);
/* oklch */ color: oklch(27.0% 0.075 290.3);
Tailwind
colors: {
  custom: {
    50: '#645a7b',
    500: '#271e48',
    950: '#000000',
  },
}
SCSS
$custom: #271e48;
$custom-light: #645a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#271e48",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 72
  },
  "hsl": {
    "h": 252.857,
    "s": 41.176,
    "l": 20
  },
  "oklch": {
    "l": 0.27013,
    "c": 0.07532,
    "h": 290.3
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#271E48
secondary
#717D45
accent
#D157B7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#050309
muted
#7A787B

Preview Lab

Preview with #271E48

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

Preview Lab → · Contrast checker → · Palette generator →

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