#2F1B93#2F1B93

#2F1B93 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.180 H 278.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2F1B93
RGBrgb(47, 27, 147)
HSLhsl(250, 69%, 34%)
HSVhsv(250, 82%, 58%)
CMYKcmyk(68%, 81.6%, 0%, 42.4%)
CIE-LABlab(21.92, 44.40, -61.67)
CIE-LCHlch(21.92, 75.99, 305.75°)
OKLaboklab(34.68% 0.028 -0.1781)
OKLCHoklch(34.68% 0.18 278.9)
XYZxyz(6.8290, 3.4942, 27.9127)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B93 #7F931B
analogous
#1B4393 #2F1B93 #6B1B93
triadic
#2F1B93 #932F1B #1B932F
tetradic
#2F1B93 #931B43 #7F931B #1B936B
square
#2F1B93 #931B43 #7F931B #1B936B
split-complementary
#2F1B93 #936B1B #43931B
monochromatic
#0E082C #1E125F #2F1B93 #4024C7 #634BDE

Accessibility & contrast

On white

12.36
#2F1B93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B93
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B93#FFFFFF#000000##FFFFFF
##2F1B931.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003996
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1b93;
/* rgb */ color: rgb(47, 27, 147);
/* oklch */ color: oklch(34.7% 0.180 278.9);
Tailwind
colors: {
  custom: {
    50: '#775cb4',
    500: '#2f1b93',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b93;
$custom-light: #775cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b93",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 147
  },
  "hsl": {
    "h": 250,
    "s": 68.966,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.18028,
    "h": 278.9
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#2F1B93
secondary
#ACC04A
accent
#EC3CCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1B93

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

Preview Lab → · Contrast checker → · Palette generator →

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