#2F1A95#2F1A95

#2F1A95 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.183 H 278.7°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#2F1A95
RGBrgb(47, 26, 149)
HSLhsl(250, 70%, 34%)
HSVhsv(250, 83%, 58%)
CMYKcmyk(68.5%, 82.6%, 0%, 41.6%)
CIE-LABlab(21.99, 45.48, -62.79)
CIE-LCHlch(21.99, 77.54, 305.92°)
OKLaboklab(34.79% 0.0279 -0.1813)
OKLCHoklch(34.79% 0.183 278.7)
XYZxyz(6.9648, 3.5125, 28.7389)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A95 #80951A
analogous
#1A4395 #2F1A95 #6D1A95
triadic
#2F1A95 #952F1A #1A952F
tetradic
#2F1A95 #951A43 #80951A #1A956D
square
#2F1A95 #951A43 #80951A #1A956D
split-complementary
#2F1A95 #956D1A #43951A
monochromatic
#0E082D #1F1161 #2F1A95 #3F23C9 #634ADF

Accessibility & contrast

On white

12.33
#2F1A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F1A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A95
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A95#FFFFFF#000000##FFFFFF
##2F1A951.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1a95;
/* rgb */ color: rgb(47, 26, 149);
/* oklch */ color: oklch(34.8% 0.183 278.7);
Tailwind
colors: {
  custom: {
    50: '#775bb5',
    500: '#2f1a95',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a95;
$custom-light: #775bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a95",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 250.244,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34793,
    "c": 0.18348,
    "h": 278.7
  },
  "luminance": 0.03513
}

Semantic roles & 50–950 ramp

primary
#2F1A95
secondary
#ADC14A
accent
#ED3BCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1A95

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

Preview Lab → · Contrast checker → · Palette generator →

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