#2F2072#2F2072

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

Color values

HEX#2F2072
RGBrgb(47, 32, 114)
HSLhsl(251, 56%, 29%)
HSVhsv(251, 72%, 45%)
CMYKcmyk(58.8%, 71.9%, 0%, 55.3%)
CIE-LABlab(19.44, 31.09, -44.91)
CIE-LCHlch(19.44, 54.62, 304.69°)
OKLaboklab(31.9% 0.0329 -0.1292)
OKLCHoklch(31.9% 0.133 284.3)
XYZxyz(4.7251, 2.8520, 16.2178)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2072 #637220
analogous
#203A72 #2F2072 #582072
triadic
#2F2072 #722F20 #20722F
tetradic
#2F2072 #72203A #637220 #207258
square
#2F2072 #72203A #637220 #207258
split-complementary
#2F2072 #725820 #3A7220
monochromatic
#0A0718 #1B1342 #2F2072 #432DA2 #5B42CA

Accessibility & contrast

On white

13.37
#2F2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F2072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2072
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2072#FFFFFF#000000##FFFFFF
##2F20721.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#0E3546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f2072;
/* rgb */ color: rgb(47, 32, 114);
/* oklch */ color: oklch(31.9% 0.133 284.3);
Tailwind
colors: {
  custom: {
    50: '#705d9b',
    500: '#2f2072',
    950: '#000000',
  },
}
SCSS
$custom: #2f2072;
$custom-light: #705d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2072",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 250.976,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31895,
    "c": 0.13332,
    "h": 284.3
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#2F2072
secondary
#95A648
accent
#DF48C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2072

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

Preview Lab → · Contrast checker → · Palette generator →

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