#2F2173#2F2173

#2F2173 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.133 H 283.8°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#2F2173
RGBrgb(47, 33, 115)
HSLhsl(250, 55%, 29%)
HSVhsv(250, 71%, 45%)
CMYKcmyk(59.1%, 71.3%, 0%, 54.9%)
CIE-LABlab(19.76, 30.80, -45.03)
CIE-LCHlch(19.76, 54.56, 304.37°)
OKLaboklab(32.15% 0.0318 -0.1296)
OKLCHoklch(32.15% 0.133 283.8)
XYZxyz(4.8097, 2.9296, 16.5284)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2173 #657321
analogous
#213C73 #2F2173 #582173
triadic
#2F2173 #732F21 #21732F
tetradic
#2F2173 #73213C #657321 #217358
square
#2F2173 #73213C #657321 #217358
split-complementary
#2F2173 #735821 #3C7321
monochromatic
#0A0718 #1C1343 #2F2173 #422FA3 #5B45CA

Accessibility & contrast

On white

13.24
#2F2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2173
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2173#FFFFFF#000000##FFFFFF
##2F21731.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#0D3647
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2173;
/* rgb */ color: rgb(47, 33, 115);
/* oklch */ color: oklch(32.2% 0.133 283.8);
Tailwind
colors: {
  custom: {
    50: '#705d9c',
    500: '#2f2173',
    950: '#000000',
  },
}
SCSS
$custom: #2f2173;
$custom-light: #705d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2173",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 250.244,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32152,
    "c": 0.13339,
    "h": 283.8
  },
  "luminance": 0.0293
}

Semantic roles & 50–950 ramp

primary
#2F2173
secondary
#97A649
accent
#DF49C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2173

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

Preview Lab → · Contrast checker → · Palette generator →

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