#271D53#271D53

#271D53 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.094 H 287.1°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#271D53
RGBrgb(39, 29, 83)
HSLhsl(251, 48%, 22%)
HSVhsv(251, 65%, 33%)
CMYKcmyk(53%, 65.1%, 0%, 67.5%)
CIE-LABlab(15.14, 20.87, -31.47)
CIE-LCHlch(15.14, 37.76, 303.56°)
OKLaboklab(27.72% 0.0277 -0.09)
OKLCHoklch(27.72% 0.094 287.1)
XYZxyz(2.8369, 1.9345, 8.4058)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D53 #49531D
analogous
#1D2E53 #271D53 #421D53
triadic
#271D53 #53271D #1D5327
tetradic
#271D53 #531D2E #49531D #1D5342
square
#271D53 #531D2E #49531D #1D5342
split-complementary
#271D53 #53421D #2E531D
monochromatic
#0B0817 #120D26 #271D53 #3C2D80 #523DAE

Accessibility & contrast

On white

15.14
#271D53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#271D53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D53
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D53#FFFFFF#000000##FFFFFF
##271D531.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #271d53;
/* rgb */ color: rgb(39, 29, 83);
/* oklch */ color: oklch(27.7% 0.094 287.1);
Tailwind
colors: {
  custom: {
    50: '#655984',
    500: '#271d53',
    950: '#000000',
  },
}
SCSS
$custom: #271d53;
$custom-light: #655984;
$custom-dark: #000000;
JSON
{
  "hex": "#271d53",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 83
  },
  "hsl": {
    "h": 251.111,
    "s": 48.214,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27717,
    "c": 0.09415,
    "h": 287.1
  },
  "luminance": 0.01935
}

Semantic roles & 50–950 ramp

primary
#271D53
secondary
#7C8844
accent
#D850BF
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271D53

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

Preview Lab → · Contrast checker → · Palette generator →

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