#2F1A97#2F1A97

#2F1A97 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.186 H 278.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2F1A97
RGBrgb(47, 26, 151)
HSLhsl(250, 71%, 35%)
HSVhsv(250, 83%, 59%)
CMYKcmyk(68.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(22.22, 46.09, -63.64)
CIE-LCHlch(22.22, 78.58, 305.91°)
OKLaboklab(35.02% 0.0273 -0.1838)
OKLCHoklch(35.02% 0.186 278.4)
XYZxyz(7.1258, 3.5769, 29.5870)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A97 #82971A
analogous
#1A4497 #2F1A97 #6E1A97
triadic
#2F1A97 #972F1A #1A972F
tetradic
#2F1A97 #971A44 #82971A #1A976E
square
#2F1A97 #971A44 #82971A #1A976E
split-complementary
#2F1A97 #976E1A #44971A
monochromatic
#0E082F #1F1163 #2F1A97 #3F23CB #644BE0

Accessibility & contrast

On white

12.24
#2F1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A97
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A97#FFFFFF#000000##FFFFFF
##2F1A971.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1a97;
/* rgb */ color: rgb(47, 26, 151);
/* oklch */ color: oklch(35.0% 0.186 278.4);
Tailwind
colors: {
  custom: {
    50: '#785bb7',
    500: '#2f1a97',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a97;
$custom-light: #785bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a97",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 250.08,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3502,
    "c": 0.18584,
    "h": 278.4
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#2F1A97
secondary
#AEC24B
accent
#ED3ACF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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