#2F1B8A#2F1B8A

#2F1B8A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.169 H 280.4°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2F1B8A
RGBrgb(47, 27, 138)
HSLhsl(251, 67%, 32%)
HSVhsv(251, 80%, 54%)
CMYKcmyk(65.9%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.91, 41.62, -57.73)
CIE-LCHlch(20.91, 71.17, 305.79°)
OKLaboklab(33.68% 0.0307 -0.1666)
OKLCHoklch(33.68% 0.169 280.4)
XYZxyz(6.1502, 3.2227, 24.3378)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B8A #768A1B
analogous
#1B3E8A #2F1B8A #671B8A
triadic
#2F1B8A #8A2F1B #1B8A2F
tetradic
#2F1B8A #8A1B3E #768A1B #1B8A67
square
#2F1B8A #8A1B3E #768A1B #1B8A67
split-complementary
#2F1B8A #8A671B #3E8A1B
monochromatic
#0C0724 #1E1157 #2F1B8A #4025BD #6045DB

Accessibility & contrast

On white

12.77
#2F1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B8A
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B8A#FFFFFF#000000##FFFFFF
##2F1B8A1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1b8a;
/* rgb */ color: rgb(47, 27, 138);
/* oklch */ color: oklch(33.7% 0.169 280.4);
Tailwind
colors: {
  custom: {
    50: '#755bad',
    500: '#2f1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b8a;
$custom-light: #755bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b8a",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 250.811,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33681,
    "c": 0.16945,
    "h": 280.4
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#2F1B8A
secondary
#A7BC45
accent
#EA3ECB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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