#2F216F#2F216F

#2F216F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.128 H 284.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2F216F
RGBrgb(47, 33, 111)
HSLhsl(251, 54%, 28%)
HSVhsv(251, 70%, 44%)
CMYKcmyk(57.7%, 70.3%, 0%, 56.5%)
CIE-LABlab(19.39, 29.47, -43.06)
CIE-LCHlch(19.39, 52.18, 304.39°)
OKLaboklab(31.77% 0.0324 -0.1238)
OKLCHoklch(31.77% 0.128 284.7)
XYZxyz(4.5845, 2.8395, 15.3423)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F216F #616F21
analogous
#213A6F #2F216F #56216F
triadic
#2F216F #6F2F21 #216F2F
tetradic
#2F216F #6F213A #616F21 #216F56
square
#2F216F #6F213A #616F21 #216F56
split-complementary
#2F216F #6F5621 #3A6F21
monochromatic
#0A0718 #1B1340 #2F216F #432F9E #5B43C7

Accessibility & contrast

On white

13.39
#2F216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F216F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F216F#FFFFFF#000000##FFFFFF
##2F216F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#123545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f216f;
/* rgb */ color: rgb(47, 33, 111);
/* oklch */ color: oklch(31.8% 0.128 284.7);
Tailwind
colors: {
  custom: {
    50: '#6f5d99',
    500: '#2f216f',
    950: '#000000',
  },
}
SCSS
$custom: #2f216f;
$custom-light: #6f5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#2f216f",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 250.769,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31772,
    "c": 0.12793,
    "h": 284.7
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#2F216F
secondary
#93A349
accent
#DE4AC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F216F

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

Preview Lab → · Contrast checker → · Palette generator →

#2F216F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva