#271F4F#271F4F

#271F4F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.085 H 287.2°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#271F4F
RGBrgb(39, 31, 79)
HSLhsl(250, 44%, 22%)
HSVhsv(250, 61%, 31%)
CMYKcmyk(50.6%, 60.8%, 0%, 69%)
CIE-LABlab(15.36, 18.10, -28.40)
CIE-LCHlch(15.36, 33.67, 302.51°)
OKLaboklab(27.78% 0.0251 -0.0809)
OKLCHoklch(27.78% 0.085 287.2)
XYZxyz(2.7376, 1.9757, 7.6327)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#271F4F #474F1F
analogous
#1F2F4F #271F4F #3F1F4F
triadic
#271F4F #4F271F #1F4F27
tetradic
#271F4F #4F1F2F #474F1F #1F4F3F
square
#271F4F #4F1F2F #474F1F #1F4F3F
split-complementary
#271F4F #4F3F1F #2F4F1F
monochromatic
#0B0916 #110E23 #271F4F #3D307B #5241A7

Accessibility & contrast

On white

15.05
#271F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#271F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #271F4F
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##271F4F#FFFFFF#000000##FFFFFF
##271F4F1.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052851
Deuteranopia (green-blind)
#05254E
Tritanopia (blue-blind)
#1A2A33
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #271f4f;
/* rgb */ color: rgb(39, 31, 79);
/* oklch */ color: oklch(27.8% 0.085 287.2);
Tailwind
colors: {
  custom: {
    50: '#655a81',
    500: '#271f4f',
    950: '#000000',
  },
}
SCSS
$custom: #271f4f;
$custom-light: #655a81;
$custom-dark: #000000;
JSON
{
  "hex": "#271f4f",
  "rgb": {
    "r": 39,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 250,
    "s": 43.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27778,
    "c": 0.08474,
    "h": 287.2
  },
  "luminance": 0.01976
}

Semantic roles & 50–950 ramp

primary
#271F4F
secondary
#798446
accent
#D354BE
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #271F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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