#2F2050#2F2050

#2F2050 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.085 H 295.0°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#2F2050
RGBrgb(47, 32, 80)
HSLhsl(259, 43%, 22%)
HSVhsv(259, 60%, 31%)
CMYKcmyk(41.3%, 60%, 0%, 68.6%)
CIE-LABlab(16.58, 19.92, -27.06)
CIE-LCHlch(16.58, 33.60, 306.36°)
OKLaboklab(28.92% 0.0357 -0.0767)
OKLCHoklch(28.92% 0.085 295)
XYZxyz(3.1364, 2.2165, 7.8504)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2050 #415020
analogous
#202950 #2F2050 #472050
triadic
#2F2050 #502F20 #20502F
tetradic
#2F2050 #502029 #415020 #205047
square
#2F2050 #502029 #415020 #205047
split-complementary
#2F2050 #504720 #295020
monochromatic
#0D0916 #150F24 #2F2050 #49317C #6243A7

Accessibility & contrast

On white

14.55
#2F2050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F2050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2050
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2050#FFFFFF#000000##FFFFFF
##2F20501.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2952
Deuteranopia (green-blind)
#0F284F
Tritanopia (blue-blind)
#272A34
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f2050;
/* rgb */ color: rgb(47, 32, 80);
/* oklch */ color: oklch(28.9% 0.085 295.0);
Tailwind
colors: {
  custom: {
    50: '#6a5c81',
    500: '#2f2050',
    950: '#000000',
  },
}
SCSS
$custom: #2f2050;
$custom-light: #6a5c81;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2050",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 80
  },
  "hsl": {
    "h": 258.75,
    "s": 42.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2892,
    "c": 0.08466,
    "h": 295
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#2F2050
secondary
#718447
accent
#D355AB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07040A
muted
#7A797C

Preview Lab

Preview with #2F2050

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

Preview Lab → · Contrast checker → · Palette generator →

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