#271A49#271A49

#271A49 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.3% C 0.084 H 292.4°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#271A49
RGBrgb(39, 26, 73)
HSLhsl(257, 47%, 19%)
HSVhsv(257, 64%, 29%)
CMYKcmyk(46.6%, 64.4%, 0%, 71.4%)
CIE-LABlab(13.54, 19.54, -27.21)
CIE-LCHlch(13.54, 33.50, 305.68°)
OKLaboklab(26.28% 0.032 -0.0775)
OKLCHoklch(26.28% 0.084 292.4)
XYZxyz(2.4084, 1.6511, 6.4938)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A49 #3C491A
analogous
#1A2549 #271A49 #3F1A49
triadic
#271A49 #49271A #1A4927
tetradic
#271A49 #491A25 #3C491A #1A493F
square
#271A49 #491A25 #3C491A #1A493F
split-complementary
#271A49 #493F1A #25491A
monochromatic
#0C0817 #0F0A1C #271A49 #3F2A76 #573AA3

Accessibility & contrast

On white

15.79
#271A49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#271A49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A49
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A49#FFFFFF#000000##FFFFFF
##271A491.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01234B
Deuteranopia (green-blind)
#042248
Tritanopia (blue-blind)
#1E242E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271a49;
/* rgb */ color: rgb(39, 26, 73);
/* oklch */ color: oklch(26.3% 0.084 292.4);
Tailwind
colors: {
  custom: {
    50: '#64577c',
    500: '#271a49',
    950: '#000000',
  },
}
SCSS
$custom: #271a49;
$custom-light: #64577c;
$custom-dark: #000000;
JSON
{
  "hex": "#271a49",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 73
  },
  "hsl": {
    "h": 256.596,
    "s": 47.475,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26284,
    "c": 0.08382,
    "h": 292.4
  },
  "luminance": 0.01651
}

Semantic roles & 50–950 ramp

primary
#271A49
secondary
#6E7F40
accent
#D751B2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #271A49

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

Preview Lab → · Contrast checker → · Palette generator →

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