#2F1190#2F1190

#2F1190 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.3% C 0.184 H 280.4°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2F1190
RGBrgb(47, 17, 144)
HSLhsl(254, 79%, 32%)
HSVhsv(254, 88%, 56%)
CMYKcmyk(67.4%, 88.2%, 0%, 43.5%)
CIE-LABlab(20.12, 47.79, -62.80)
CIE-LCHlch(20.12, 78.91, 307.27°)
OKLaboklab(33.34% 0.0334 -0.1812)
OKLCHoklch(33.34% 0.184 280.4)
XYZxyz(6.4052, 3.0183, 26.6252)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1190 #729011
analogous
#113390 #2F1190 #6F1190
triadic
#2F1190 #902F11 #11902F
tetradic
#2F1190 #901133 #729011 #11906F
square
#2F1190 #901133 #729011 #11906F
split-complementary
#2F1190 #906F11 #339011
monochromatic
#0B0423 #1D0B59 #2F1190 #4117C7 #5F34E7

Accessibility & contrast

On white

13.09
#2F1190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F1190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1190
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1190#FFFFFF#000000##FFFFFF
##2F11901.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1190;
/* rgb */ color: rgb(47, 17, 144);
/* oklch */ color: oklch(33.3% 0.184 280.4);
Tailwind
colors: {
  custom: {
    50: '#7757b2',
    500: '#2f1190',
    950: '#000000',
  },
}
SCSS
$custom: #2f1190;
$custom-light: #7757b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1190",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 144
  },
  "hsl": {
    "h": 254.173,
    "s": 78.882,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33335,
    "c": 0.18426,
    "h": 280.4
  },
  "luminance": 0.03019
}

Semantic roles & 50–950 ramp

primary
#2F1190
secondary
#A3C439
accent
#F532C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2F1190

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

Preview Lab → · Contrast checker → · Palette generator →

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