#271E49#271E49

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

Color values

HEX#271E49
RGBrgb(39, 30, 73)
HSLhsl(253, 42%, 20%)
HSVhsv(253, 59%, 29%)
CMYKcmyk(46.6%, 58.9%, 0%, 71.4%)
CIE-LABlab(14.63, 16.74, -25.46)
CIE-LCHlch(14.63, 30.47, 303.33°)
OKLaboklab(27.09% 0.0262 -0.0723)
OKLCHoklch(27.09% 0.077 289.9)
XYZxyz(2.5032, 1.8408, 6.5255)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271E49 #40491E
analogous
#1E2A49 #271E49 #3C1E49
triadic
#271E49 #49271E #1E4927
tetradic
#271E49 #491E2A #40491E #1E493C
square
#271E49 #491E2A #40491E #1E493C
split-complementary
#271E49 #493C1E #2A491E
monochromatic
#0C0916 #100C1E #271E49 #3E3074 #5542A0

Accessibility & contrast

On white

15.35
#271E49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271E49
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271E49#FFFFFF#000000##FFFFFF
##271E491.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A264A
Deuteranopia (green-blind)
#0B2448
Tritanopia (blue-blind)
#1D2730
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271e49;
/* rgb */ color: rgb(39, 30, 73);
/* oklch */ color: oklch(27.1% 0.077 289.9);
Tailwind
colors: {
  custom: {
    50: '#645a7c',
    500: '#271e49',
    950: '#000000',
  },
}
SCSS
$custom: #271e49;
$custom-light: #645a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#271e49",
  "rgb": {
    "r": 39,
    "g": 30,
    "b": 73
  },
  "hsl": {
    "h": 252.558,
    "s": 41.748,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27091,
    "c": 0.07692,
    "h": 289.9
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#271E49
secondary
#727E45
accent
#D256B8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#050309
muted
#7A787B

Preview Lab

Preview with #271E49

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

Preview Lab → · Contrast checker → · Palette generator →

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