#2F1760#2F1760

#2F1760 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.121 H 292.1°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2F1760
RGBrgb(47, 23, 96)
HSLhsl(260, 61%, 23%)
HSVhsv(260, 76%, 38%)
CMYKcmyk(51%, 76%, 0%, 62.4%)
CIE-LABlab(15.81, 30.65, -39.07)
CIE-LCHlch(15.81, 49.66, 308.11°)
OKLaboklab(28.78% 0.0455 -0.112)
OKLCHoklch(28.78% 0.121 292.1)
XYZxyz(3.5894, 2.0615, 11.2729)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1760 #486017
analogous
#172360 #2F1760 #531760
triadic
#2F1760 #602F17 #17602F
tetradic
#2F1760 #601723 #486017 #176053
square
#2F1760 #601723 #486017 #176053
split-complementary
#2F1760 #605317 #236017
monochromatic
#0C0619 #170B2F #2F1760 #472391 #5F2FC3

Accessibility & contrast

On white

14.87
#2F1760 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1760 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1760
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1760#FFFFFF#000000##FFFFFF
##2F17601.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#202A39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1760;
/* rgb */ color: rgb(47, 23, 96);
/* oklch */ color: oklch(28.8% 0.121 292.1);
Tailwind
colors: {
  custom: {
    50: '#6d568e',
    500: '#2f1760',
    950: '#000000',
  },
}
SCSS
$custom: #2f1760;
$custom-light: #6d568e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1760",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 96
  },
  "hsl": {
    "h": 259.726,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28776,
    "c": 0.1209,
    "h": 292.1
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#2F1760
secondary
#79973C
accent
#E443AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1760

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

Preview Lab → · Contrast checker → · Palette generator →

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