#271A41#271A41

#271A41 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.6% C 0.071 H 296.4°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#271A41
RGBrgb(39, 26, 65)
HSLhsl(260, 43%, 18%)
HSVhsv(260, 60%, 25%)
CMYKcmyk(40%, 60%, 0%, 74.5%)
CIE-LABlab(12.93, 16.91, -22.61)
CIE-LCHlch(12.93, 28.24, 306.80°)
OKLaboklab(25.64% 0.0318 -0.064)
OKLCHoklch(25.64% 0.071 296.4)
XYZxyz(2.1600, 1.5517, 5.1857)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271A41 #34411A
analogous
#1A2041 #271A41 #3A1A41
triadic
#271A41 #41271A #1A4127
tetradic
#271A41 #411A20 #34411A #1A413A
square
#271A41 #411A20 #34411A #1A413A
split-complementary
#271A41 #413A1A #20411A
monochromatic
#0D0916 #0D0916 #271A41 #412B6D #5B3D98

Accessibility & contrast

On white

16.03
#271A41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#271A41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271A41
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271A41#FFFFFF#000000##FFFFFF
##271A411.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2242
Deuteranopia (green-blind)
#0E2140
Tritanopia (blue-blind)
#21222A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #271a41;
/* rgb */ color: rgb(39, 26, 65);
/* oklch */ color: oklch(25.6% 0.071 296.4);
Tailwind
colors: {
  custom: {
    50: '#635776',
    500: '#271a41',
    950: '#000000',
  },
}
SCSS
$custom: #271a41;
$custom-light: #635776;
$custom-dark: #000000;
JSON
{
  "hex": "#271a41",
  "rgb": {
    "r": 39,
    "g": 26,
    "b": 65
  },
  "hsl": {
    "h": 260,
    "s": 42.857,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25643,
    "c": 0.07142,
    "h": 296.4
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#271A41
secondary
#657740
accent
#D355A9
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #271A41

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

Preview Lab → · Contrast checker → · Palette generator →

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