#2F1982#2F1982

#2F1982 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.162 H 282.3°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#2F1982
RGBrgb(47, 25, 130)
HSLhsl(253, 68%, 30%)
HSVhsv(253, 81%, 51%)
CMYKcmyk(63.8%, 80.8%, 0%, 49%)
CIE-LABlab(19.68, 40.15, -54.73)
CIE-LCHlch(19.68, 67.88, 306.26°)
OKLaboklab(32.56% 0.0344 -0.1579)
OKLCHoklch(32.56% 0.162 282.3)
XYZxyz(5.5479, 2.9109, 21.3843)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1982 #6C8219
analogous
#193882 #2F1982 #631982
triadic
#2F1982 #822F19 #19822F
tetradic
#2F1982 #821938 #6C8219 #198263
square
#2F1982 #821938 #6C8219 #198263
split-complementary
#2F1982 #826319 #388219
monochromatic
#0A051B #1C0F4F #2F1982 #4223B5 #5D3CD9

Accessibility & contrast

On white

13.27
#2F1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1982
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1982#FFFFFF#000000##FFFFFF
##2F19821.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002C80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1982;
/* rgb */ color: rgb(47, 25, 130);
/* oklch */ color: oklch(32.6% 0.162 282.3);
Tailwind
colors: {
  custom: {
    50: '#7359a7',
    500: '#2f1982',
    950: '#000000',
  },
}
SCSS
$custom: #2f1982;
$custom-light: #7359a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1982",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 252.571,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32561,
    "c": 0.16156,
    "h": 282.3
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#2F1982
secondary
#9DB641
accent
#EB3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1982

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

Preview Lab → · Contrast checker → · Palette generator →

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