#2F1A8B#2F1A8B

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

Color values

HEX#2F1A8B
RGBrgb(47, 26, 139)
HSLhsl(251, 68%, 32%)
HSVhsv(251, 81%, 55%)
CMYKcmyk(66.2%, 81.3%, 0%, 45.5%)
CIE-LABlab(20.85, 42.43, -58.46)
CIE-LCHlch(20.85, 72.23, 305.97°)
OKLaboklab(33.67% 0.031 -0.1687)
OKLCHoklch(33.67% 0.172 280.4)
XYZxyz(6.2004, 3.2067, 24.7133)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A8B #768B1A
analogous
#1A3E8B #2F1A8B #671A8B
triadic
#2F1A8B #8B2F1A #1A8B2F
tetradic
#2F1A8B #8B1A3E #768B1A #1A8B67
square
#2F1A8B #8B1A3E #768B1A #1A8B67
split-complementary
#2F1A8B #8B671A #3E8B1A
monochromatic
#0C0724 #1E1057 #2F1A8B #4024BF #6043DC

Accessibility & contrast

On white

12.79
#2F1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A8B
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A8B#FFFFFF#000000##FFFFFF
##2F1A8B1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1a8b;
/* rgb */ color: rgb(47, 26, 139);
/* oklch */ color: oklch(33.7% 0.172 280.4);
Tailwind
colors: {
  custom: {
    50: '#755aae',
    500: '#2f1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a8b;
$custom-light: #755aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a8b",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 251.15,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33671,
    "c": 0.17156,
    "h": 280.4
  },
  "luminance": 0.03207
}

Semantic roles & 50–950 ramp

primary
#2F1A8B
secondary
#A7BD44
accent
#EB3CCB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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