#2F1490#2F1490

#2F1490 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.6% C 0.182 H 280.2°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#2F1490
RGBrgb(47, 20, 144)
HSLhsl(253, 76%, 32%)
HSVhsv(253, 86%, 56%)
CMYKcmyk(67.4%, 86.1%, 0%, 43.5%)
CIE-LABlab(20.51, 46.63, -62.15)
CIE-LCHlch(20.51, 77.69, 306.88°)
OKLaboklab(33.6% 0.0322 -0.1794)
OKLCHoklch(33.6% 0.182 280.2)
XYZxyz(6.4549, 3.1177, 26.6418)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1490 #759014
analogous
#143790 #2F1490 #6D1490
triadic
#2F1490 #902F14 #14902F
tetradic
#2F1490 #901437 #759014 #14906D
square
#2F1490 #901437 #759014 #14906D
split-complementary
#2F1490 #906D14 #379014
monochromatic
#0C0525 #1D0D5A #2F1490 #411BC6 #5F3BE4

Accessibility & contrast

On white

12.93
#2F1490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1490
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1490#FFFFFF#000000##FFFFFF
##2F14901.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1490;
/* rgb */ color: rgb(47, 20, 144);
/* oklch */ color: oklch(33.6% 0.182 280.2);
Tailwind
colors: {
  custom: {
    50: '#7758b2',
    500: '#2f1490',
    950: '#000000',
  },
}
SCSS
$custom: #2f1490;
$custom-light: #7758b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1490",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 144
  },
  "hsl": {
    "h": 253.065,
    "s": 75.61,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33603,
    "c": 0.18224,
    "h": 280.2
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#2F1490
secondary
#A6C33D
accent
#F236C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1490

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

Preview Lab → · Contrast checker → · Palette generator →

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