#271D44#271D44

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

Color values

HEX#271D44
RGBrgb(39, 29, 68)
HSLhsl(255, 40%, 19%)
HSVhsv(255, 57%, 27%)
CMYKcmyk(42.6%, 57.4%, 0%, 73.3%)
CIE-LABlab(13.99, 15.77, -23.02)
CIE-LCHlch(13.99, 27.91, 304.41°)
OKLaboklab(26.5% 0.0273 -0.0652)
OKLCHoklch(26.5% 0.071 292.7)
XYZxyz(2.3192, 1.7274, 5.6789)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D44 #3A441D
analogous
#1D2744 #271D44 #3B1D44
triadic
#271D44 #44271D #1D4427
tetradic
#271D44 #441D27 #3A441D #1D443B
square
#271D44 #441D27 #3A441D #1D443B
split-complementary
#271D44 #443B1D #27441D
monochromatic
#0C0915 #0E0B19 #271D44 #402F6F #58429A

Accessibility & contrast

On white

15.61
#271D44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#271D44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D44
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D44#FFFFFF#000000##FFFFFF
##271D441.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2445
Deuteranopia (green-blind)
#0F2343
Tritanopia (blue-blind)
#20252D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271d44;
/* rgb */ color: rgb(39, 29, 68);
/* oklch */ color: oklch(26.5% 0.071 292.7);
Tailwind
colors: {
  custom: {
    50: '#635978',
    500: '#271d44',
    950: '#000000',
  },
}
SCSS
$custom: #271d44;
$custom-light: #635978;
$custom-dark: #000000;
JSON
{
  "hex": "#271d44",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 68
  },
  "hsl": {
    "h": 255.385,
    "s": 40.206,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26496,
    "c": 0.07067,
    "h": 292.7
  },
  "luminance": 0.01727
}

Semantic roles & 50–950 ramp

primary
#271D44
secondary
#6B7944
accent
#D058B1
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #271D44

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

Preview Lab → · Contrast checker → · Palette generator →

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