#271D52#271D52

#271D52 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.093 H 287.4°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#271D52
RGBrgb(39, 29, 82)
HSLhsl(251, 48%, 22%)
HSVhsv(251, 65%, 32%)
CMYKcmyk(52.4%, 64.6%, 0%, 67.8%)
CIE-LABlab(15.06, 20.53, -30.93)
CIE-LCHlch(15.06, 37.12, 303.58°)
OKLaboklab(27.63% 0.0277 -0.0884)
OKLCHoklch(27.63% 0.093 287.4)
XYZxyz(2.7986, 1.9191, 8.2040)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D52 #48521D
analogous
#1D2E52 #271D52 #421D52
triadic
#271D52 #52271D #1D5227
tetradic
#271D52 #521D2E #48521D #1D5242
square
#271D52 #521D2E #48521D #1D5242
split-complementary
#271D52 #52421D #2E521D
monochromatic
#0B0817 #110D25 #271D52 #3D2D7F #523DAC

Accessibility & contrast

On white

15.18
#271D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D52
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D52#FFFFFF#000000##FFFFFF
##271D521.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#192934
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271d52;
/* rgb */ color: rgb(39, 29, 82);
/* oklch */ color: oklch(27.6% 0.093 287.4);
Tailwind
colors: {
  custom: {
    50: '#655983',
    500: '#271d52',
    950: '#000000',
  },
}
SCSS
$custom: #271d52;
$custom-light: #655983;
$custom-dark: #000000;
JSON
{
  "hex": "#271d52",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 251.321,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27631,
    "c": 0.09264,
    "h": 287.4
  },
  "luminance": 0.01919
}

Semantic roles & 50–950 ramp

primary
#271D52
secondary
#7B8744
accent
#D750BE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271D52

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

Preview Lab → · Contrast checker → · Palette generator →

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