#271F4E#271F4E

#271F4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.7% C 0.083 H 287.5°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#271F4E
RGBrgb(39, 31, 78)
HSLhsl(250, 43%, 21%)
HSVhsv(250, 60%, 31%)
CMYKcmyk(50%, 60.3%, 0%, 69.4%)
CIE-LABlab(15.28, 17.75, -27.84)
CIE-LCHlch(15.28, 33.01, 302.52°)
OKLaboklab(27.7% 0.025 -0.0793)
OKLCHoklch(27.7% 0.083 287.5)
XYZxyz(2.7014, 1.9613, 7.4425)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F4E #464E1F
analogous
#1F2F4E #271F4E #3F1F4E
triadic
#271F4E #4E271F #1F4E27
tetradic
#271F4E #4E1F2F #464E1F #1F4E3F
square
#271F4E #4E1F2F #464E1F #1F4E3F
split-complementary
#271F4E #4E3F1F #2F4E1F
monochromatic
#0B0916 #110E22 #271F4E #3D307A #5342A6

Accessibility & contrast

On white

15.08
#271F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#271F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F4E
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F4E#FFFFFF#000000##FFFFFF
##271F4E1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#06254D
Tritanopia (blue-blind)
#1B2933
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271f4e;
/* rgb */ color: rgb(39, 31, 78);
/* oklch */ color: oklch(27.7% 0.083 287.5);
Tailwind
colors: {
  custom: {
    50: '#645a80',
    500: '#271f4e',
    950: '#000000',
  },
}
SCSS
$custom: #271f4e;
$custom-light: #645a80;
$custom-dark: #000000;
JSON
{
  "hex": "#271f4e",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 250.213,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27696,
    "c": 0.08316,
    "h": 287.5
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#271F4E
secondary
#788346
accent
#D355BD
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #271F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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