#2F1390#2F1390

#2F1390 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.183 H 280.3°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#2F1390
RGBrgb(47, 19, 144)
HSLhsl(253, 77%, 32%)
HSVhsv(253, 87%, 56%)
CMYKcmyk(67.4%, 86.8%, 0%, 43.5%)
CIE-LABlab(20.37, 47.03, -62.37)
CIE-LCHlch(20.37, 78.11, 307.02°)
OKLaboklab(33.51% 0.0326 -0.18)
OKLCHoklch(33.51% 0.183 280.3)
XYZxyz(6.4376, 3.0832, 26.6360)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1390 #749013
analogous
#133690 #2F1390 #6E1390
triadic
#2F1390 #902F13 #13902F
tetradic
#2F1390 #901336 #749013 #13906E
square
#2F1390 #901336 #749013 #13906E
split-complementary
#2F1390 #906E13 #369013
monochromatic
#0C0524 #1D0C5A #2F1390 #411AC6 #5F39E5

Accessibility & contrast

On white

12.99
#2F1390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F1390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1390
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1390#FFFFFF#000000##FFFFFF
##2F13901.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003593
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1390;
/* rgb */ color: rgb(47, 19, 144);
/* oklch */ color: oklch(33.5% 0.183 280.3);
Tailwind
colors: {
  custom: {
    50: '#7757b2',
    500: '#2f1390',
    950: '#000000',
  },
}
SCSS
$custom: #2f1390;
$custom-light: #7757b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1390",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 253.44,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33511,
    "c": 0.18294,
    "h": 280.3
  },
  "luminance": 0.03084
}

Semantic roles & 50–950 ramp

primary
#2F1390
secondary
#A5C43B
accent
#F335C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2F1390

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

Preview Lab → · Contrast checker → · Palette generator →

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