#271D56#271D56

#271D56 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.0% C 0.099 H 286.2°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#271D56
RGBrgb(39, 29, 86)
HSLhsl(251, 50%, 23%)
HSVhsv(251, 66%, 34%)
CMYKcmyk(54.7%, 66.3%, 0%, 66.3%)
CIE-LABlab(15.39, 21.92, -33.09)
CIE-LCHlch(15.39, 39.69, 303.52°)
OKLaboklab(27.98% 0.0275 -0.0948)
OKLCHoklch(27.98% 0.099 286.2)
XYZxyz(2.9553, 1.9818, 9.0291)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D56 #4C561D
analogous
#1D3056 #271D56 #431D56
triadic
#271D56 #56271D #1D5627
tetradic
#271D56 #561D30 #4C561D #1D5643
square
#271D56 #561D30 #4C561D #1D5643
split-complementary
#271D56 #56431D #30561D
monochromatic
#0A0817 #120E28 #271D56 #3C2C84 #513CB2

Accessibility & contrast

On white

15.04
#271D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D56
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D56#FFFFFF#000000##FFFFFF
##271D561.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#162A36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271d56;
/* rgb */ color: rgb(39, 29, 86);
/* oklch */ color: oklch(28.0% 0.099 286.2);
Tailwind
colors: {
  custom: {
    50: '#665986',
    500: '#271d56',
    950: '#000000',
  },
}
SCSS
$custom: #271d56;
$custom-light: #665986;
$custom-dark: #000000;
JSON
{
  "hex": "#271d56",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 86
  },
  "hsl": {
    "h": 250.526,
    "s": 49.565,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27982,
    "c": 0.09868,
    "h": 286.2
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#271D56
secondary
#7F8B44
accent
#D94FC1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271D56

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

Preview Lab → · Contrast checker → · Palette generator →

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