#271A48#271A48

#271A48 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.082 H 292.9°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#271A48
RGBrgb(39, 26, 72)
HSLhsl(257, 47%, 19%)
HSVhsv(257, 64%, 28%)
CMYKcmyk(45.8%, 63.9%, 0%, 71.8%)
CIE-LABlab(13.46, 19.21, -26.65)
CIE-LCHlch(13.46, 32.85, 305.78°)
OKLaboklab(26.2% 0.032 -0.0758)
OKLCHoklch(26.2% 0.082 292.9)
XYZxyz(2.3755, 1.6379, 6.3206)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A48 #3B481A
analogous
#1A2448 #271A48 #3E1A48
triadic
#271A48 #48271A #1A4827
tetradic
#271A48 #481A24 #3B481A #1A483E
square
#271A48 #481A24 #3B481A #1A483E
split-complementary
#271A48 #483E1A #24481A
monochromatic
#0C0816 #0F0A1B #271A48 #3F2A75 #583AA2

Accessibility & contrast

On white

15.82
#271A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A48
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A48#FFFFFF#000000##FFFFFF
##271A481.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02234A
Deuteranopia (green-blind)
#052247
Tritanopia (blue-blind)
#1E242E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #271a48;
/* rgb */ color: rgb(39, 26, 72);
/* oklch */ color: oklch(26.2% 0.082 292.9);
Tailwind
colors: {
  custom: {
    50: '#64577b',
    500: '#271a48',
    950: '#000000',
  },
}
SCSS
$custom: #271a48;
$custom-light: #64577b;
$custom-dark: #000000;
JSON
{
  "hex": "#271a48",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 72
  },
  "hsl": {
    "h": 256.957,
    "s": 46.939,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26201,
    "c": 0.08228,
    "h": 292.9
  },
  "luminance": 0.01638
}

Semantic roles & 50–950 ramp

primary
#271A48
secondary
#6C7E40
accent
#D751B1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#050309
muted
#7A787B

Preview Lab

Preview with #271A48

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

Preview Lab → · Contrast checker → · Palette generator →

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