#271F48#271F48

#271F48 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.2% C 0.074 H 289.6°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#271F48
RGBrgb(39, 31, 72)
HSLhsl(252, 40%, 20%)
HSVhsv(252, 57%, 28%)
CMYKcmyk(45.8%, 56.9%, 0%, 71.8%)
CIE-LABlab(14.84, 15.69, -24.43)
CIE-LCHlch(14.84, 29.04, 302.71°)
OKLaboklab(27.22% 0.0246 -0.0693)
OKLCHoklch(27.22% 0.074 289.6)
XYZxyz(2.4961, 1.8791, 6.3608)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F48 #40481F
analogous
#1F2C48 #271F48 #3B1F48
triadic
#271F48 #48271F #1F4827
tetradic
#271F48 #481F2C #40481F #1F483B
square
#271F48 #481F2C #40481F #1F483B
split-complementary
#271F48 #483B1F #2C481F
monochromatic
#0C0915 #100D1D #271F48 #3E3173 #55449E

Accessibility & contrast

On white

15.26
#271F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F48
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F48#FFFFFF#000000##FFFFFF
##271F481.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2649
Deuteranopia (green-blind)
#0E2447
Tritanopia (blue-blind)
#1E2730
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271f48;
/* rgb */ color: rgb(39, 31, 72);
/* oklch */ color: oklch(27.2% 0.074 289.6);
Tailwind
colors: {
  custom: {
    50: '#635a7b',
    500: '#271f48',
    950: '#000000',
  },
}
SCSS
$custom: #271f48;
$custom-light: #635a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#271f48",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 72
  },
  "hsl": {
    "h": 251.707,
    "s": 39.806,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27224,
    "c": 0.07355,
    "h": 289.6
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#271F48
secondary
#727D46
accent
#D058B8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#050409
muted
#7A797B

Preview Lab

Preview with #271F48

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

Preview Lab → · Contrast checker → · Palette generator →

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