#2F1C80#2F1C80

#2F1C80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.156 H 282.2°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2F1C80
RGBrgb(47, 28, 128)
HSLhsl(251, 64%, 31%)
HSVhsv(251, 78%, 50%)
CMYKcmyk(63.3%, 78.1%, 0%, 49.8%)
CIE-LABlab(20.02, 37.95, -52.92)
CIE-LCHlch(20.02, 65.12, 305.65°)
OKLaboklab(32.73% 0.0329 -0.1526)
OKLCHoklch(32.73% 0.156 282.2)
XYZxyz(5.4826, 2.9930, 20.7067)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C80 #6D801C
analogous
#1C3B80 #2F1C80 #611C80
triadic
#2F1C80 #802F1C #1C802F
tetradic
#2F1C80 #801C3B #6D801C #1C8061
square
#2F1C80 #801C3B #6D801C #1C8061
split-complementary
#2F1C80 #80611C #3B801C
monochromatic
#0A061C #1D114E #2F1C80 #4127B2 #5D41D5

Accessibility & contrast

On white

13.14
#2F1C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1C80
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C80#FFFFFF#000000##FFFFFF
##2F1C801.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1c80;
/* rgb */ color: rgb(47, 28, 128);
/* oklch */ color: oklch(32.7% 0.156 282.2);
Tailwind
colors: {
  custom: {
    50: '#735ba6',
    500: '#2f1c80',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c80;
$custom-light: #735ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c80",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 251.4,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32729,
    "c": 0.15612,
    "h": 282.2
  },
  "luminance": 0.02993
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1C80

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

Preview Lab → · Contrast checker → · Palette generator →

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