#271B50#271B50

#271B50 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.093 H 289.1°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#271B50
RGBrgb(39, 27, 80)
HSLhsl(254, 50%, 21%)
HSVhsv(254, 66%, 31%)
CMYKcmyk(51.2%, 66.3%, 0%, 68.6%)
CIE-LABlab(14.37, 21.21, -30.68)
CIE-LCHlch(14.37, 37.30, 304.66°)
OKLaboklab(27.07% 0.0304 -0.0877)
OKLCHoklch(27.07% 0.093 289.1)
XYZxyz(2.6762, 1.7943, 7.7932)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271B50 #44501B
analogous
#1B2950 #271B50 #411B50
triadic
#271B50 #50271B #1B5027
tetradic
#271B50 #501B29 #44501B #1B5041
square
#271B50 #501B29 #44501B #1B5041
split-complementary
#271B50 #50411B #29501B
monochromatic
#0B0817 #110C22 #271B50 #3D2A7E #543AAC

Accessibility & contrast

On white

15.45
#271B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271B50
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271B50#FFFFFF#000000##FFFFFF
##271B501.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#1A2732
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271b50;
/* rgb */ color: rgb(39, 27, 80);
/* oklch */ color: oklch(27.1% 0.093 289.1);
Tailwind
colors: {
  custom: {
    50: '#655881',
    500: '#271b50',
    950: '#000000',
  },
}
SCSS
$custom: #271b50;
$custom-light: #655881;
$custom-dark: #000000;
JSON
{
  "hex": "#271b50",
  "rgb": {
    "r": 39,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 253.585,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27074,
    "c": 0.09279,
    "h": 289.1
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#271B50
secondary
#768641
accent
#D94FBA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #271B50

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

Preview Lab → · Contrast checker → · Palette generator →

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