#271B52#271B52

#271B52 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.096 H 288.4°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#271B52
RGBrgb(39, 27, 82)
HSLhsl(253, 50%, 21%)
HSVhsv(253, 67%, 32%)
CMYKcmyk(52.4%, 67.1%, 0%, 67.8%)
CIE-LABlab(14.54, 21.90, -31.77)
CIE-LCHlch(14.54, 38.58, 304.58°)
OKLaboklab(27.25% 0.0302 -0.0909)
OKLCHoklch(27.25% 0.096 288.4)
XYZxyz(2.7512, 1.8243, 8.1882)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B52 #46521B
analogous
#1B2B52 #271B52 #431B52
triadic
#271B52 #52271B #1B5227
tetradic
#271B52 #521B2B #46521B #1B5243
square
#271B52 #521B2B #46521B #1B5243
split-complementary
#271B52 #52431B #2B521B
monochromatic
#0B0817 #110C24 #271B52 #3D2A80 #5339AE

Accessibility & contrast

On white

15.39
#271B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#271B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271B52
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B52#FFFFFF#000000##FFFFFF
##271B521.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#192833
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271b52;
/* rgb */ color: rgb(39, 27, 82);
/* oklch */ color: oklch(27.3% 0.096 288.4);
Tailwind
colors: {
  custom: {
    50: '#655883',
    500: '#271b52',
    950: '#000000',
  },
}
SCSS
$custom: #271b52;
$custom-light: #655883;
$custom-dark: #000000;
JSON
{
  "hex": "#271b52",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 253.091,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2725,
    "c": 0.09578,
    "h": 288.4
  },
  "luminance": 0.01824
}

Semantic roles & 50–950 ramp

primary
#271B52
secondary
#788841
accent
#DA4EBB
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271B52

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

Preview Lab → · Contrast checker → · Palette generator →

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