#271F46#271F46

#271F46 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.1% C 0.070 H 290.3°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#271F46
RGBrgb(39, 31, 70)
HSLhsl(252, 39%, 20%)
HSVhsv(252, 56%, 27%)
CMYKcmyk(44.3%, 55.7%, 0%, 72.5%)
CIE-LABlab(14.70, 15.01, -23.28)
CIE-LCHlch(14.70, 27.70, 302.83°)
OKLaboklab(27.07% 0.0244 -0.0659)
OKLCHoklch(27.07% 0.07 290.3)
XYZxyz(2.4319, 1.8534, 6.0228)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F46 #3E461F
analogous
#1F2A46 #271F46 #3B1F46
triadic
#271F46 #46271F #1F4627
tetradic
#271F46 #461F2A #3E461F #1F463B
square
#271F46 #461F2A #3E461F #1F463B
split-complementary
#271F46 #463B1F #2A461F
monochromatic
#0C0915 #0F0C1C #271F46 #3F3270 #56459B

Accessibility & contrast

On white

15.32
#271F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#271F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F46
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F46#FFFFFF#000000##FFFFFF
##271F461.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2647
Deuteranopia (green-blind)
#102445
Tritanopia (blue-blind)
#1F272F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #271f46;
/* rgb */ color: rgb(39, 31, 70);
/* oklch */ color: oklch(27.1% 0.070 290.3);
Tailwind
colors: {
  custom: {
    50: '#635a7a',
    500: '#271f46',
    950: '#000000',
  },
}
SCSS
$custom: #271f46;
$custom-light: #635a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#271f46",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 70
  },
  "hsl": {
    "h": 252.308,
    "s": 38.614,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27073,
    "c": 0.0703,
    "h": 290.3
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#271F46
secondary
#707A46
accent
#CF59B6
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050409
muted
#7A797B

Preview Lab

Preview with #271F46

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

Preview Lab → · Contrast checker → · Palette generator →

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