#2F2172#2F2172

#2F2172 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.132 H 284.0°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2F2172
RGBrgb(47, 33, 114)
HSLhsl(250, 55%, 29%)
HSVhsv(250, 71%, 45%)
CMYKcmyk(58.8%, 71.1%, 0%, 55.3%)
CIE-LABlab(19.67, 30.47, -44.54)
CIE-LCHlch(19.67, 53.97, 304.37°)
OKLaboklab(32.06% 0.0319 -0.1281)
OKLCHoklch(32.06% 0.132 284)
XYZxyz(4.7525, 2.9067, 16.2269)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2172 #647221
analogous
#213C72 #2F2172 #582172
triadic
#2F2172 #722F21 #21722F
tetradic
#2F2172 #72213C #647221 #217258
square
#2F2172 #72213C #647221 #217258
split-complementary
#2F2172 #725821 #3C7221
monochromatic
#0A0718 #1B1343 #2F2172 #432FA1 #5B44C9

Accessibility & contrast

On white

13.28
#2F2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2172
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2172#FFFFFF#000000##FFFFFF
##2F21721.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#0E3646
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2172;
/* rgb */ color: rgb(47, 33, 114);
/* oklch */ color: oklch(32.1% 0.132 284.0);
Tailwind
colors: {
  custom: {
    50: '#6f5d9b',
    500: '#2f2172',
    950: '#000000',
  },
}
SCSS
$custom: #2f2172;
$custom-light: #6f5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2172",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 250.37,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32057,
    "c": 0.13204,
    "h": 284
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#2F2172
secondary
#96A549
accent
#DE49C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2172

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

Preview Lab → · Contrast checker → · Palette generator →

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