#2F1C83#2F1C83

#2F1C83 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.160 H 281.6°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2F1C83
RGBrgb(47, 28, 131)
HSLhsl(251, 65%, 31%)
HSVhsv(251, 79%, 51%)
CMYKcmyk(64.1%, 78.6%, 0%, 48.6%)
CIE-LABlab(20.33, 38.90, -54.29)
CIE-LCHlch(20.33, 66.79, 305.62°)
OKLaboklab(33.05% 0.0321 -0.1566)
OKLCHoklch(33.05% 0.16 281.6)
XYZxyz(5.6830, 3.0731, 21.7620)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C83 #70831C
analogous
#1C3C83 #2F1C83 #621C83
triadic
#2F1C83 #832F1C #1C832F
tetradic
#2F1C83 #831C3C #70831C #1C8362
square
#2F1C83 #831C3C #70831C #1C8362
split-complementary
#2F1C83 #83621C #3C831C
monochromatic
#0B061E #1D1151 #2F1C83 #4127B5 #5E43D7

Accessibility & contrast

On white

13.00
#2F1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F1C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C83
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C83#FFFFFF#000000##FFFFFF
##2F1C831.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1c83;
/* rgb */ color: rgb(47, 28, 131);
/* oklch */ color: oklch(33.0% 0.160 281.6);
Tailwind
colors: {
  custom: {
    50: '#735ba8',
    500: '#2f1c83',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c83;
$custom-light: #735ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c83",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 251.068,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33048,
    "c": 0.15987,
    "h": 281.6
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1C83

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

Preview Lab → · Contrast checker → · Palette generator →

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