#2F1A83#2F1A83

#2F1A83 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.162 H 281.9°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2F1A83
RGBrgb(47, 26, 131)
HSLhsl(252, 67%, 31%)
HSVhsv(252, 80%, 51%)
CMYKcmyk(64.1%, 80.2%, 0%, 48.6%)
CIE-LABlab(19.97, 39.95, -54.89)
CIE-LCHlch(19.97, 67.89, 306.05°)
OKLaboklab(32.79% 0.0334 -0.1583)
OKLCHoklch(32.79% 0.162 281.9)
XYZxyz(5.6371, 2.9814, 21.7467)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A83 #6E831A
analogous
#1A3983 #2F1A83 #631A83
triadic
#2F1A83 #832F1A #1A832F
tetradic
#2F1A83 #831A39 #6E831A #1A8363
square
#2F1A83 #831A39 #6E831A #1A8363
split-complementary
#2F1A83 #83631A #39831A
monochromatic
#0A061D #1D1050 #2F1A83 #4124B6 #5D3FD9

Accessibility & contrast

On white

13.15
#2F1A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A83
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A83#FFFFFF#000000##FFFFFF
##2F1A831.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1a83;
/* rgb */ color: rgb(47, 26, 131);
/* oklch */ color: oklch(32.8% 0.162 281.9);
Tailwind
colors: {
  custom: {
    50: '#745aa8',
    500: '#2f1a83',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a83;
$custom-light: #745aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a83",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 252,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32793,
    "c": 0.16184,
    "h": 281.9
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#2F1A83
secondary
#9FB742
accent
#EA3EC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1A83

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

Preview Lab → · Contrast checker → · Palette generator →

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