#2F2175#2F2175

#2F2175 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.3% C 0.136 H 283.3°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#2F2175
RGBrgb(47, 33, 117)
HSLhsl(250, 56%, 29%)
HSVhsv(250, 72%, 46%)
CMYKcmyk(59.8%, 71.8%, 0%, 54.1%)
CIE-LABlab(19.95, 31.47, -46.01)
CIE-LCHlch(19.95, 55.74, 304.37°)
OKLaboklab(32.35% 0.0314 -0.1324)
OKLCHoklch(32.35% 0.136 283.3)
XYZxyz(4.9260, 2.9761, 17.1410)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2175 #677521
analogous
#213D75 #2F2175 #592175
triadic
#2F2175 #752F21 #21752F
tetradic
#2F2175 #75213D #677521 #217559
square
#2F2175 #75213D #677521 #217559
split-complementary
#2F2175 #755921 #3D7521
monochromatic
#0A0718 #1C1445 #2F2175 #422EA5 #5C46CB

Accessibility & contrast

On white

13.16
#2F2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2175
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2175#FFFFFF#000000##FFFFFF
##2F21751.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#093748
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2175;
/* rgb */ color: rgb(47, 33, 117);
/* oklch */ color: oklch(32.3% 0.136 283.3);
Tailwind
colors: {
  custom: {
    50: '#705d9e',
    500: '#2f2175',
    950: '#000000',
  },
}
SCSS
$custom: #2f2175;
$custom-light: #705d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2175",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 250,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32346,
    "c": 0.1361,
    "h": 283.3
  },
  "luminance": 0.02976
}

Semantic roles & 50–950 ramp

primary
#2F2175
secondary
#98A84A
accent
#DF49C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2175

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

Preview Lab → · Contrast checker → · Palette generator →

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