#271F41#271F41

#271F41 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.7% C 0.062 H 292.5°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#271F41
RGBrgb(39, 31, 65)
HSLhsl(254, 35%, 19%)
HSVhsv(254, 52%, 25%)
CMYKcmyk(40%, 52.3%, 0%, 74.5%)
CIE-LABlab(14.36, 13.35, -20.34)
CIE-LCHlch(14.36, 24.33, 303.28°)
OKLaboklab(26.71% 0.0238 -0.0573)
OKLCHoklch(26.71% 0.062 292.5)
XYZxyz(2.2806, 1.7929, 5.2259)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F41 #39411F
analogous
#1F2841 #271F41 #381F41
triadic
#271F41 #41271F #1F4127
tetradic
#271F41 #411F28 #39411F #1F4138
square
#271F41 #411F28 #39411F #1F4138
split-complementary
#271F41 #41381F #28411F
monochromatic
#0C0A15 #0E0B18 #271F41 #40336A #594794

Accessibility & contrast

On white

15.46
#271F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #271F41
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F41#FFFFFF#000000##FFFFFF
##271F411.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132542
Deuteranopia (green-blind)
#142440
Tritanopia (blue-blind)
#21262C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #271f41;
/* rgb */ color: rgb(39, 31, 65);
/* oklch */ color: oklch(26.7% 0.062 292.5);
Tailwind
colors: {
  custom: {
    50: '#635a76',
    500: '#271f41',
    950: '#000000',
  },
}
SCSS
$custom: #271f41;
$custom-light: #635a76;
$custom-dark: #000000;
JSON
{
  "hex": "#271f41",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 65
  },
  "hsl": {
    "h": 254.118,
    "s": 35.417,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2671,
    "c": 0.06204,
    "h": 292.5
  },
  "luminance": 0.01793
}

Semantic roles & 50–950 ramp

primary
#271F41
secondary
#6A7547
accent
#CB5CB1
background
#F5F5F7
surface
#EAE9ED
border
#C6C5C8
text
#050408
muted
#79797B

Preview Lab

Preview with #271F41

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

Preview Lab → · Contrast checker → · Palette generator →

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