#271C53#271C53

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

Color values

HEX#271C53
RGBrgb(39, 28, 83)
HSLhsl(252, 50%, 22%)
HSVhsv(252, 66%, 33%)
CMYKcmyk(53%, 66.3%, 0%, 67.5%)
CIE-LABlab(14.88, 21.56, -31.89)
CIE-LCHlch(14.88, 38.50, 304.06°)
OKLaboklab(27.53% 0.0289 -0.0912)
OKLCHoklch(27.53% 0.096 287.6)
XYZxyz(2.8128, 1.8863, 8.3978)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271C53 #48531C
analogous
#1C2D53 #271C53 #431C53
triadic
#271C53 #53271C #1C5327
tetradic
#271C53 #531C2D #48531C #1C5343
square
#271C53 #531C2D #48531C #1C5343
split-complementary
#271C53 #53431C #2D531C
monochromatic
#0B0817 #110D25 #271C53 #3D2B81 #523BAF

Accessibility & contrast

On white

15.25
#271C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271C53
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271C53#FFFFFF#000000##FFFFFF
##271C531.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002755
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#182934
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271c53;
/* rgb */ color: rgb(39, 28, 83);
/* oklch */ color: oklch(27.5% 0.096 287.6);
Tailwind
colors: {
  custom: {
    50: '#665884',
    500: '#271c53',
    950: '#000000',
  },
}
SCSS
$custom: #271c53;
$custom-light: #665884;
$custom-dark: #000000;
JSON
{
  "hex": "#271c53",
  "rgb": {
    "r": 39,
    "g": 28,
    "b": 83
  },
  "hsl": {
    "h": 252,
    "s": 49.55,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27526,
    "c": 0.09572,
    "h": 287.6
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#271C53
secondary
#7B8942
accent
#D94FBD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271C53

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

Preview Lab → · Contrast checker → · Palette generator →

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