#271A4A#271A4A

#271A4A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.4% C 0.085 H 292.0°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#271A4A
RGBrgb(39, 26, 74)
HSLhsl(256, 48%, 20%)
HSVhsv(256, 65%, 29%)
CMYKcmyk(47.3%, 64.9%, 0%, 71%)
CIE-LABlab(13.62, 19.87, -27.78)
CIE-LCHlch(13.62, 34.15, 305.58°)
OKLaboklab(26.37% 0.032 -0.0791)
OKLCHoklch(26.37% 0.085 292)
XYZxyz(2.4418, 1.6645, 6.6699)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A4A #3D4A1A
analogous
#1A254A #271A4A #3F1A4A
triadic
#271A4A #4A271A #1A4A27
tetradic
#271A4A #4A1A25 #3D4A1A #1A4A3F
square
#271A4A #4A1A25 #3D4A1A #1A4A3F
split-complementary
#271A4A #4A3F1A #254A1A
monochromatic
#0C0817 #0F0A1D #271A4A #3F2A77 #573AA5

Accessibility & contrast

On white

15.75
#271A4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271A4A
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A4A#FFFFFF#000000##FFFFFF
##271A4A1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244C
Deuteranopia (green-blind)
#022249
Tritanopia (blue-blind)
#1D252F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #271a4a;
/* rgb */ color: rgb(39, 26, 74);
/* oklch */ color: oklch(26.4% 0.085 292.0);
Tailwind
colors: {
  custom: {
    50: '#64577d',
    500: '#271a4a',
    950: '#000000',
  },
}
SCSS
$custom: #271a4a;
$custom-light: #64577d;
$custom-dark: #000000;
JSON
{
  "hex": "#271a4a",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 74
  },
  "hsl": {
    "h": 256.25,
    "s": 48,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26368,
    "c": 0.08535,
    "h": 292
  },
  "luminance": 0.01665
}

Semantic roles & 50–950 ramp

primary
#271A4A
secondary
#6F8040
accent
#D850B3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #271A4A

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

Preview Lab → · Contrast checker → · Palette generator →

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