#271D50#271D50

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

Color values

HEX#271D50
RGBrgb(39, 29, 80)
HSLhsl(252, 47%, 21%)
HSVhsv(252, 64%, 31%)
CMYKcmyk(51.2%, 63.7%, 0%, 68.6%)
CIE-LABlab(14.89, 19.84, -29.83)
CIE-LCHlch(14.89, 35.82, 303.63°)
OKLaboklab(27.46% 0.0278 -0.0852)
OKLCHoklch(27.46% 0.09 288)
XYZxyz(2.7236, 1.8891, 7.8090)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D50 #46501D
analogous
#1D2D50 #271D50 #411D50
triadic
#271D50 #50271D #1D5027
tetradic
#271D50 #501D2D #46501D #1D5041
square
#271D50 #501D2D #46501D #1D5041
split-complementary
#271D50 #50411D #2D501D
monochromatic
#0B0816 #110D23 #271D50 #3D2D7D #533EAA

Accessibility & contrast

On white

15.24
#271D50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271D50
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D50#FFFFFF#000000##FFFFFF
##271D501.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002752
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#1A2833
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271d50;
/* rgb */ color: rgb(39, 29, 80);
/* oklch */ color: oklch(27.5% 0.090 288.0);
Tailwind
colors: {
  custom: {
    50: '#655981',
    500: '#271d50',
    950: '#000000',
  },
}
SCSS
$custom: #271d50;
$custom-light: #655981;
$custom-dark: #000000;
JSON
{
  "hex": "#271d50",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 80
  },
  "hsl": {
    "h": 251.765,
    "s": 46.789,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2746,
    "c": 0.08958,
    "h": 288
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#271D50
secondary
#788544
accent
#D651BC
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271D50

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

Preview Lab → · Contrast checker → · Palette generator →

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