#2F1480#2F1480

#2F1480 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.164 H 283.4°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2F1480
RGBrgb(47, 20, 128)
HSLhsl(255, 73%, 29%)
HSVhsv(255, 84%, 50%)
CMYKcmyk(63.3%, 84.4%, 0%, 49.8%)
CIE-LABlab(18.64, 41.92, -55.19)
CIE-LCHlch(18.64, 69.31, 307.22°)
OKLaboklab(31.77% 0.038 -0.1591)
OKLCHoklch(31.77% 0.164 283.4)
XYZxyz(5.3175, 2.6628, 20.6517)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1480 #658014
analogous
#142F80 #2F1480 #651480
triadic
#2F1480 #802F14 #14802F
tetradic
#2F1480 #80142F #658014 #148065
square
#2F1480 #80142F #658014 #148065
split-complementary
#2F1480 #806514 #2F8014
monochromatic
#0A041A #1C0C4B #2F1480 #421CB5 #5B30DF

Accessibility & contrast

On white

13.70
#2F1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F1480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1480
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1480#FFFFFF#000000##FFFFFF
##2F14801.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1480;
/* rgb */ color: rgb(47, 20, 128);
/* oklch */ color: oklch(31.8% 0.164 283.4);
Tailwind
colors: {
  custom: {
    50: '#7357a6',
    500: '#2f1480',
    950: '#000000',
  },
}
SCSS
$custom: #2f1480;
$custom-light: #7357a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1480",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 255,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31771,
    "c": 0.1636,
    "h": 283.4
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#2F1480
secondary
#97B53B
accent
#F038C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1480

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

Preview Lab → · Contrast checker → · Palette generator →

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