#2F1780#2F1780

#2F1780 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.161 H 283.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2F1780
RGBrgb(47, 23, 128)
HSLhsl(254, 70%, 30%)
HSVhsv(254, 82%, 50%)
CMYKcmyk(63.3%, 82%, 0%, 49.8%)
CIE-LABlab(19.12, 40.52, -54.39)
CIE-LCHlch(19.12, 67.83, 306.69°)
OKLaboklab(32.1% 0.0362 -0.1569)
OKLCHoklch(32.1% 0.161 283)
XYZxyz(5.3738, 2.7753, 20.6704)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1780 #688017
analogous
#173480 #2F1780 #631780
triadic
#2F1780 #802F17 #17802F
tetradic
#2F1780 #801734 #688017 #178063
square
#2F1780 #801734 #688017 #178063
split-complementary
#2F1780 #806317 #348017
monochromatic
#0A051A #1C0E4C #2F1780 #4220B4 #5C36DB

Accessibility & contrast

On white

13.50
#2F1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1780
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1780#FFFFFF#000000##FFFFFF
##2F17801.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1780;
/* rgb */ color: rgb(47, 23, 128);
/* oklch */ color: oklch(32.1% 0.161 283.0);
Tailwind
colors: {
  custom: {
    50: '#7358a6',
    500: '#2f1780',
    950: '#000000',
  },
}
SCSS
$custom: #2f1780;
$custom-light: #7358a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1780",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 253.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32103,
    "c": 0.16099,
    "h": 283
  },
  "luminance": 0.02776
}

Semantic roles & 50–950 ramp

primary
#2F1780
secondary
#99B43E
accent
#EC3BC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1780

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

Preview Lab → · Contrast checker → · Palette generator →

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