#2F1C7E#2F1C7E

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

Color values

HEX#2F1C7E
RGBrgb(47, 28, 126)
HSLhsl(252, 64%, 30%)
HSVhsv(252, 78%, 49%)
CMYKcmyk(62.7%, 77.8%, 0%, 50.6%)
CIE-LABlab(19.81, 37.31, -51.99)
CIE-LCHlch(19.81, 64.00, 305.67°)
OKLaboklab(32.52% 0.0335 -0.1499)
OKLCHoklch(32.52% 0.154 282.6)
XYZxyz(5.3523, 2.9408, 20.0202)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C7E #6B7E1C
analogous
#1C3A7E #2F1C7E #601C7E
triadic
#2F1C7E #7E2F1C #1C7E2F
tetradic
#2F1C7E #7E1C3A #6B7E1C #1C7E60
square
#2F1C7E #7E1C3A #6B7E1C #1C7E60
split-complementary
#2F1C7E #7E601C #3A7E1C
monochromatic
#0A061A #1C114C #2F1C7E #4227B0 #5D40D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1C7E#FFFFFF#000000##FFFFFF
##2F1C7E1.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)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1c7e;
/* rgb */ color: rgb(47, 28, 126);
/* oklch */ color: oklch(32.5% 0.154 282.6);
Tailwind
colors: {
  custom: {
    50: '#725ba4',
    500: '#2f1c7e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c7e;
$custom-light: #725ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c7e",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 251.633,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32518,
    "c": 0.1536,
    "h": 282.6
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#2F1C7E
secondary
#9CB244
accent
#E741C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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