#2F1050#2F1050

#2F1050 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.110 H 301.1°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#2F1050
RGBrgb(47, 16, 80)
HSLhsl(269, 67%, 19%)
HSVhsv(269, 80%, 31%)
CMYKcmyk(41.3%, 80%, 0%, 68.6%)
CIE-LABlab(12.95, 29.74, -32.94)
CIE-LCHlch(12.95, 44.38, 312.08°)
OKLaboklab(26.29% 0.0567 -0.094)
OKLCHoklch(26.29% 0.11 301.1)
XYZxyz(2.8052, 1.5541, 7.7400)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1050 #315010
analogous
#101150 #2F1050 #4F1050
triadic
#2F1050 #502F10 #10502F
tetradic
#2F1050 #501011 #315010 #10504F
square
#2F1050 #501011 #315010 #10504F
split-complementary
#2F1050 #504F10 #115010
monochromatic
#0F051A #11061D #2F1050 #4D1A83 #6B24B6

Accessibility & contrast

On white

16.02
#2F1050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F1050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1050
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1050#FFFFFF#000000##FFFFFF
##2F10501.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#28202F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f1050;
/* rgb */ color: rgb(47, 16, 80);
/* oklch */ color: oklch(26.3% 0.110 301.1);
Tailwind
colors: {
  custom: {
    50: '#6b5182',
    500: '#2f1050',
    950: '#000000',
  },
}
SCSS
$custom: #2f1050;
$custom-light: #6b5182;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1050",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 269.063,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26286,
    "c": 0.10977,
    "h": 301.1
  },
  "luminance": 0.01554
}

Semantic roles & 50–950 ramp

primary
#2F1050
secondary
#5F8A32
accent
#EA3E97
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2F1050

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

Preview Lab → · Contrast checker → · Palette generator →

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