#271D57#271D57

#271D57 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.100 H 285.9°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#271D57
RGBrgb(39, 29, 87)
HSLhsl(250, 50%, 23%)
HSVhsv(250, 67%, 34%)
CMYKcmyk(55.2%, 66.7%, 0%, 65.9%)
CIE-LABlab(15.48, 22.27, -33.63)
CIE-LCHlch(15.48, 40.33, 303.51°)
OKLaboklab(28.07% 0.0274 -0.0963)
OKLCHoklch(28.07% 0.1 285.9)
XYZxyz(2.9959, 1.9980, 9.2428)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271D57 #4D571D
analogous
#1D3057 #271D57 #441D57
triadic
#271D57 #57271D #1D5727
tetradic
#271D57 #571D30 #4D571D #1D5744
square
#271D57 #571D30 #4D571D #1D5744
split-complementary
#271D57 #57441D #30571D
monochromatic
#0A0817 #120E29 #271D57 #3C2C85 #503CB3

Accessibility & contrast

On white

15.00
#271D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271D57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271D57
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271D57#FFFFFF#000000##FFFFFF
##271D571.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#152B37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #271d57;
/* rgb */ color: rgb(39, 29, 87);
/* oklch */ color: oklch(28.1% 0.100 285.9);
Tailwind
colors: {
  custom: {
    50: '#665987',
    500: '#271d57',
    950: '#000000',
  },
}
SCSS
$custom: #271d57;
$custom-light: #665987;
$custom-dark: #000000;
JSON
{
  "hex": "#271d57",
  "rgb": {
    "r": 39,
    "g": 29,
    "b": 87
  },
  "hsl": {
    "h": 250.345,
    "s": 50,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28071,
    "c": 0.10017,
    "h": 285.9
  },
  "luminance": 0.01998
}

Semantic roles & 50–950 ramp

primary
#271D57
secondary
#808C44
accent
#DA4EC2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #271D57

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

Preview Lab → · Contrast checker → · Palette generator →

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