#2F1989#2F1989

#2F1989 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.170 H 280.9°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1989
RGBrgb(47, 25, 137)
HSLhsl(252, 69%, 32%)
HSVhsv(252, 82%, 54%)
CMYKcmyk(65.7%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.46, 42.30, -57.85)
CIE-LCHlch(20.46, 71.67, 306.17°)
OKLaboklab(33.33% 0.0322 -0.167)
OKLCHoklch(33.33% 0.17 280.9)
XYZxyz(6.0339, 3.1053, 23.9435)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1989 #738919
analogous
#193B89 #2F1989 #671989
triadic
#2F1989 #892F19 #19892F
tetradic
#2F1989 #89193B #738919 #198967
square
#2F1989 #89193B #738919 #198967
split-complementary
#2F1989 #896719 #3B8919
monochromatic
#0B0621 #1D1055 #2F1989 #4122BD #5F40DC

Accessibility & contrast

On white

12.95
#2F1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1989
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1989#FFFFFF#000000##FFFFFF
##2F19891.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1989;
/* rgb */ color: rgb(47, 25, 137);
/* oklch */ color: oklch(33.3% 0.170 280.9);
Tailwind
colors: {
  custom: {
    50: '#755aad',
    500: '#2f1989',
    950: '#000000',
  },
}
SCSS
$custom: #2f1989;
$custom-light: #755aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1989",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 251.786,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33332,
    "c": 0.17004,
    "h": 280.9
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#2F1989
secondary
#A4BC41
accent
#EC3CC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1989

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

Preview Lab → · Contrast checker → · Palette generator →

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