#2F1783#2F1783

#2F1783 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.165 H 282.4°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#2F1783
RGBrgb(47, 23, 131)
HSLhsl(253, 70%, 30%)
HSVhsv(253, 82%, 51%)
CMYKcmyk(64.1%, 82.4%, 0%, 48.6%)
CIE-LABlab(19.46, 41.44, -55.74)
CIE-LCHlch(19.46, 69.45, 306.63°)
OKLaboklab(32.44% 0.0352 -0.1608)
OKLCHoklch(32.44% 0.165 282.4)
XYZxyz(5.5741, 2.8554, 21.7257)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1783 #6B8317
analogous
#173583 #2F1783 #651783
triadic
#2F1783 #832F17 #17832F
tetradic
#2F1783 #831735 #6B8317 #178365
square
#2F1783 #831735 #6B8317 #178365
split-complementary
#2F1783 #836517 #358317
monochromatic
#0A051B #1C0E4F #2F1783 #4220B7 #5D38DC

Accessibility & contrast

On white

13.37
#2F1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1783
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1783#FFFFFF#000000##FFFFFF
##2F17831.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1783;
/* rgb */ color: rgb(47, 23, 131);
/* oklch */ color: oklch(32.4% 0.165 282.4);
Tailwind
colors: {
  custom: {
    50: '#7458a8',
    500: '#2f1783',
    950: '#000000',
  },
}
SCSS
$custom: #2f1783;
$custom-light: #7458a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1783",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 253.333,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32435,
    "c": 0.1646,
    "h": 282.4
  },
  "luminance": 0.02856
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1783

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

Preview Lab → · Contrast checker → · Palette generator →

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