#2F1A93#2F1A93

#2F1A93 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.181 H 279.1°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2F1A93
RGBrgb(47, 26, 147)
HSLhsl(250, 70%, 34%)
HSVhsv(250, 82%, 58%)
CMYKcmyk(68%, 82.3%, 0%, 42.4%)
CIE-LABlab(21.76, 44.88, -61.94)
CIE-LCHlch(21.76, 76.49, 305.93°)
OKLaboklab(34.57% 0.0285 -0.1789)
OKLCHoklch(34.57% 0.181 279.1)
XYZxyz(6.8065, 3.4491, 27.9052)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A93 #7E931A
analogous
#1A4293 #2F1A93 #6C1A93
triadic
#2F1A93 #932F1A #1A932F
tetradic
#2F1A93 #931A42 #7E931A #1A936C
square
#2F1A93 #931A42 #7E931A #1A936C
split-complementary
#2F1A93 #936C1A #42931A
monochromatic
#0E082B #1E115F #2F1A93 #4023C7 #6349DF

Accessibility & contrast

On white

12.43
#2F1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A93
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A93#FFFFFF#000000##FFFFFF
##2F1A931.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1a93;
/* rgb */ color: rgb(47, 26, 147);
/* oklch */ color: oklch(34.6% 0.181 279.1);
Tailwind
colors: {
  custom: {
    50: '#775bb4',
    500: '#2f1a93',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a93;
$custom-light: #775bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a93",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 250.413,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34566,
    "c": 0.18112,
    "h": 279.1
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

primary
#2F1A93
secondary
#ACC048
accent
#ED3BCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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