#271D51#271D51

#271D51 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.091 H 287.7°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#271D51
RGBrgb(39, 29, 81)
HSLhsl(252, 47%, 22%)
HSVhsv(252, 64%, 32%)
CMYKcmyk(51.9%, 64.2%, 0%, 68.2%)
CIE-LABlab(14.98, 20.18, -30.38)
CIE-LCHlch(14.98, 36.47, 303.60°)
OKLaboklab(27.55% 0.0277 -0.0868)
OKLCHoklch(27.55% 0.091 287.7)
XYZxyz(2.7608, 1.9040, 8.0050)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D51 #47511D
analogous
#1D2D51 #271D51 #411D51
triadic
#271D51 #51271D #1D5127
tetradic
#271D51 #511D2D #47511D #1D5141
square
#271D51 #511D2D #47511D #1D5141
split-complementary
#271D51 #51411D #2D511D
monochromatic
#0B0817 #110D24 #271D51 #3D2D7E #523DAB

Accessibility & contrast

On white

15.21
#271D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#271D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D51
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D51#FFFFFF#000000##FFFFFF
##271D511.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#192933
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271d51;
/* rgb */ color: rgb(39, 29, 81);
/* oklch */ color: oklch(27.5% 0.091 287.7);
Tailwind
colors: {
  custom: {
    50: '#655982',
    500: '#271d51',
    950: '#000000',
  },
}
SCSS
$custom: #271d51;
$custom-light: #655982;
$custom-dark: #000000;
JSON
{
  "hex": "#271d51",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 81
  },
  "hsl": {
    "h": 251.538,
    "s": 47.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27545,
    "c": 0.09111,
    "h": 287.7
  },
  "luminance": 0.01904
}

Semantic roles & 50–950 ramp

primary
#271D51
secondary
#798644
accent
#D751BD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271D51

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

Preview Lab → · Contrast checker → · Palette generator →

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