#2F1980#2F1980

#2F1980 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.159 H 282.7°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2F1980
RGBrgb(47, 25, 128)
HSLhsl(253, 67%, 30%)
HSVhsv(253, 80%, 50%)
CMYKcmyk(63.3%, 80.5%, 0%, 49.8%)
CIE-LABlab(19.46, 39.53, -53.83)
CIE-LCHlch(19.46, 66.78, 306.29°)
OKLaboklab(32.34% 0.035 -0.1552)
OKLCHoklch(32.34% 0.159 282.7)
XYZxyz(5.4150, 2.8577, 20.6841)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1980 #6A8019
analogous
#193680 #2F1980 #631980
triadic
#2F1980 #802F19 #19802F
tetradic
#2F1980 #801936 #6A8019 #198063
square
#2F1980 #801936 #6A8019 #198063
split-complementary
#2F1980 #806319 #368019
monochromatic
#09051A #1C0F4D #2F1980 #4223B3 #5C3BD9

Accessibility & contrast

On white

13.36
#2F1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F1980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1980
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1980#FFFFFF#000000##FFFFFF
##2F19801.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1980;
/* rgb */ color: rgb(47, 25, 128);
/* oklch */ color: oklch(32.3% 0.159 282.7);
Tailwind
colors: {
  custom: {
    50: '#7359a6',
    500: '#2f1980',
    950: '#000000',
  },
}
SCSS
$custom: #2f1980;
$custom-light: #7359a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1980",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 252.816,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.32343,
    "c": 0.15911,
    "h": 282.7
  },
  "luminance": 0.02858
}

Semantic roles & 50–950 ramp

primary
#2F1980
secondary
#9BB441
accent
#EA3EC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1980

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

Preview Lab → · Contrast checker → · Palette generator →

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