#2F1C8C#2F1C8C

#2F1C8C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.171 H 280.0°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2F1C8C
RGBrgb(47, 28, 140)
HSLhsl(250, 67%, 33%)
HSVhsv(250, 80%, 55%)
CMYKcmyk(66.4%, 80%, 0%, 45.1%)
CIE-LABlab(21.31, 41.74, -58.33)
CIE-LCHlch(21.31, 71.72, 305.59°)
OKLaboklab(34.02% 0.0296 -0.1684)
OKLCHoklch(34.02% 0.171 280)
XYZxyz(6.3197, 3.3278, 25.1152)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C8C #798C1C
analogous
#1C418C #2F1C8C #671C8C
triadic
#2F1C8C #8C2F1C #1C8C2F
tetradic
#2F1C8C #8C1C41 #798C1C #1C8C67
square
#2F1C8C #8C1C41 #798C1C #1C8C67
split-complementary
#2F1C8C #8C671C #418C1C
monochromatic
#0D0826 #1E1259 #2F1C8C #4026BF #6148DA

Accessibility & contrast

On white

12.61
#2F1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C8C
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C8C#FFFFFF#000000##FFFFFF
##2F1C8C1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f1c8c;
/* rgb */ color: rgb(47, 28, 140);
/* oklch */ color: oklch(34.0% 0.171 280.0);
Tailwind
colors: {
  custom: {
    50: '#755caf',
    500: '#2f1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c8c;
$custom-light: #755caf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c8c",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 250.179,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34023,
    "c": 0.17096,
    "h": 280
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#2F1C8C
secondary
#A8BC48
accent
#EA3ECD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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