#271F49#271F49

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

Color values

HEX#271F49
RGBrgb(39, 31, 73)
HSLhsl(251, 40%, 20%)
HSVhsv(251, 58%, 29%)
CMYKcmyk(46.6%, 57.5%, 0%, 71.4%)
CIE-LABlab(14.91, 16.03, -25.01)
CIE-LCHlch(14.91, 29.70, 302.66°)
OKLaboklab(27.3% 0.0247 -0.071)
OKLCHoklch(27.3% 0.075 289.2)
XYZxyz(2.5290, 1.8923, 6.5340)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F49 #41491F
analogous
#1F2C49 #271F49 #3C1F49
triadic
#271F49 #49271F #1F4927
tetradic
#271F49 #491F2C #41491F #1F493C
square
#271F49 #491F2C #41491F #1F493C
split-complementary
#271F49 #493C1F #2C491F
monochromatic
#0B0915 #100D1E #271F49 #3E3174 #55439F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##271F49#FFFFFF#000000##FFFFFF
##271F491.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)
#0D264A
Deuteranopia (green-blind)
#0D2448
Tritanopia (blue-blind)
#1D2830
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271f49;
/* rgb */ color: rgb(39, 31, 73);
/* oklch */ color: oklch(27.3% 0.075 289.2);
Tailwind
colors: {
  custom: {
    50: '#645a7c',
    500: '#271f49',
    950: '#000000',
  },
}
SCSS
$custom: #271f49;
$custom-light: #645a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#271f49",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 73
  },
  "hsl": {
    "h": 251.429,
    "s": 40.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27301,
    "c": 0.07517,
    "h": 289.2
  },
  "luminance": 0.01892
}

Semantic roles & 50–950 ramp

primary
#271F49
secondary
#737E46
accent
#D058B9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#050409
muted
#7A797B

Preview Lab

Preview with #271F49

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

Preview Lab → · Contrast checker → · Palette generator →

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