#2F1782#2F1782

#2F1782 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.163 H 282.6°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2F1782
RGBrgb(47, 23, 130)
HSLhsl(253, 70%, 30%)
HSVhsv(253, 82%, 51%)
CMYKcmyk(63.8%, 82.3%, 0%, 49%)
CIE-LABlab(19.34, 41.13, -55.29)
CIE-LCHlch(19.34, 68.91, 306.65°)
OKLaboklab(32.32% 0.0356 -0.1595)
OKLCHoklch(32.32% 0.163 282.6)
XYZxyz(5.5067, 2.8284, 21.3705)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1782 #6A8217
analogous
#173482 #2F1782 #651782
triadic
#2F1782 #822F17 #17822F
tetradic
#2F1782 #821734 #6A8217 #178265
square
#2F1782 #821734 #6A8217 #178265
split-complementary
#2F1782 #826517 #348217
monochromatic
#09051A #1C0E4E #2F1782 #4220B6 #5C38DC

Accessibility & contrast

On white

13.41
#2F1782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1782
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1782#FFFFFF#000000##FFFFFF
##2F17821.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1782;
/* rgb */ color: rgb(47, 23, 130);
/* oklch */ color: oklch(32.3% 0.163 282.6);
Tailwind
colors: {
  custom: {
    50: '#7458a7',
    500: '#2f1782',
    950: '#000000',
  },
}
SCSS
$custom: #2f1782;
$custom-light: #7458a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1782",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 253.458,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.32324,
    "c": 0.1634,
    "h": 282.6
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#2F1782
secondary
#9BB63E
accent
#ED3BC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1782

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

Preview Lab → · Contrast checker → · Palette generator →

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