#2F1C84#2F1C84

#2F1C84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.161 H 281.4°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2F1C84
RGBrgb(47, 28, 132)
HSLhsl(251, 65%, 31%)
HSVhsv(251, 79%, 52%)
CMYKcmyk(64.4%, 78.8%, 0%, 48.2%)
CIE-LABlab(20.44, 39.22, -54.74)
CIE-LCHlch(20.44, 67.34, 305.62°)
OKLaboklab(33.16% 0.0318 -0.1579)
OKLCHoklch(33.16% 0.161 281.4)
XYZxyz(5.7511, 3.1004, 22.1207)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C84 #71841C
analogous
#1C3D84 #2F1C84 #631C84
triadic
#2F1C84 #842F1C #1C842F
tetradic
#2F1C84 #841C3D #71841C #1C8463
square
#2F1C84 #841C3D #71841C #1C8463
split-complementary
#2F1C84 #84631C #3D841C
monochromatic
#0B071F #1D1152 #2F1C84 #4127B6 #5E43D7

Accessibility & contrast

On white

12.96
#2F1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C84
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C84#FFFFFF#000000##FFFFFF
##2F1C841.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1c84;
/* rgb */ color: rgb(47, 28, 132);
/* oklch */ color: oklch(33.2% 0.161 281.4);
Tailwind
colors: {
  custom: {
    50: '#745ba9',
    500: '#2f1c84',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c84;
$custom-light: #745ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c84",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 250.962,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33155,
    "c": 0.16112,
    "h": 281.4
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#2F1C84
secondary
#A2B745
accent
#E840C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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