#2F2076#2F2076

#2F2076 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.139 H 283.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2F2076
RGBrgb(47, 32, 118)
HSLhsl(250, 57%, 29%)
HSVhsv(250, 73%, 46%)
CMYKcmyk(60.2%, 72.9%, 0%, 53.7%)
CIE-LABlab(19.82, 32.41, -46.86)
CIE-LCHlch(19.82, 56.98, 304.67°)
OKLaboklab(32.29% 0.0321 -0.1349)
OKLCHoklch(32.29% 0.139 283.4)
XYZxyz(4.9578, 2.9451, 17.4432)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2076 #677620
analogous
#203C76 #2F2076 #5A2076
triadic
#2F2076 #762F20 #20762F
tetradic
#2F2076 #76203C #677620 #20765A
square
#2F2076 #76203C #677620 #20765A
split-complementary
#2F2076 #765A20 #3C7620
monochromatic
#0A0718 #1C1346 #2F2076 #422DA6 #5C44CC

Accessibility & contrast

On white

13.22
#2F2076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2076
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2076#FFFFFF#000000##FFFFFF
##2F20761.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#073748
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2076;
/* rgb */ color: rgb(47, 32, 118);
/* oklch */ color: oklch(32.3% 0.139 283.4);
Tailwind
colors: {
  custom: {
    50: '#705d9e',
    500: '#2f2076',
    950: '#000000',
  },
}
SCSS
$custom: #2f2076;
$custom-light: #705d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2076",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 118
  },
  "hsl": {
    "h": 250.465,
    "s": 57.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32285,
    "c": 0.13868,
    "h": 283.4
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#2F2076
secondary
#98A948
accent
#E147C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2076

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

Preview Lab → · Contrast checker → · Palette generator →

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