#2F1475#2F1475

#2F1475 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.150 H 286.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#2F1475
RGBrgb(47, 20, 117)
HSLhsl(257, 71%, 27%)
HSVhsv(257, 83%, 46%)
CMYKcmyk(59.8%, 82.9%, 0%, 54.1%)
CIE-LABlab(17.41, 38.64, -50.19)
CIE-LCHlch(17.41, 63.34, 307.59°)
OKLaboklab(30.55% 0.0418 -0.1446)
OKLCHoklch(30.55% 0.15 286.1)
XYZxyz(4.6324, 2.3887, 17.0431)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1475 #5A7514
analogous
#142A75 #2F1475 #601475
triadic
#2F1475 #752F14 #14752F
tetradic
#2F1475 #75142A #5A7514 #147560
square
#2F1475 #75142A #5A7514 #147560
split-complementary
#2F1475 #756014 #2A7514
monochromatic
#0A041A #1A0B41 #2F1475 #441DA9 #5A29DA

Accessibility & contrast

On white

14.21
#2F1475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F1475 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1475
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1475#FFFFFF#000000##FFFFFF
##2F14751.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#0B3145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1475;
/* rgb */ color: rgb(47, 20, 117);
/* oklch */ color: oklch(30.6% 0.150 286.1);
Tailwind
colors: {
  custom: {
    50: '#71569e',
    500: '#2f1475',
    950: '#000000',
  },
}
SCSS
$custom: #2f1475;
$custom-light: #71569e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1475",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 256.701,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30553,
    "c": 0.15048,
    "h": 286.1
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#2F1475
secondary
#8CAB3A
accent
#EE3ABC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #2F1475

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

Preview Lab → · Contrast checker → · Palette generator →

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