#271B49#271B49

#271B49 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.082 H 291.8°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#271B49
RGBrgb(39, 27, 73)
HSLhsl(256, 46%, 20%)
HSVhsv(256, 63%, 29%)
CMYKcmyk(46.6%, 63%, 0%, 71.4%)
CIE-LABlab(13.80, 18.85, -26.78)
CIE-LCHlch(13.80, 32.75, 305.13°)
OKLaboklab(26.48% 0.0306 -0.0762)
OKLCHoklch(26.48% 0.082 291.8)
XYZxyz(2.4309, 1.6962, 6.5014)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B49 #3D491B
analogous
#1B2649 #271B49 #3E1B49
triadic
#271B49 #49271B #1B4927
tetradic
#271B49 #491B26 #3D491B #1B493E
square
#271B49 #491B26 #3D491B #1B493E
split-complementary
#271B49 #493E1B #26491B
monochromatic
#0C0816 #0F0A1C #271B49 #3F2C76 #573CA2

Accessibility & contrast

On white

15.68
#271B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#271B49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B49
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B49#FFFFFF#000000##FFFFFF
##271B491.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03244B
Deuteranopia (green-blind)
#062248
Tritanopia (blue-blind)
#1E252F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271b49;
/* rgb */ color: rgb(39, 27, 73);
/* oklch */ color: oklch(26.5% 0.082 291.8);
Tailwind
colors: {
  custom: {
    50: '#64577c',
    500: '#271b49',
    950: '#000000',
  },
}
SCSS
$custom: #271b49;
$custom-light: #64577c;
$custom-dark: #000000;
JSON
{
  "hex": "#271b49",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 73
  },
  "hsl": {
    "h": 255.652,
    "s": 46,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2648,
    "c": 0.08211,
    "h": 291.8
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#271B49
secondary
#6F7F41
accent
#D652B3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#050309
muted
#7A787B

Preview Lab

Preview with #271B49

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

Preview Lab → · Contrast checker → · Palette generator →

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