#2F1A7C#2F1A7C

#2F1A7C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.153 H 283.4°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2F1A7C
RGBrgb(47, 26, 124)
HSLhsl(253, 65%, 29%)
HSVhsv(253, 79%, 49%)
CMYKcmyk(62.1%, 79%, 0%, 51.4%)
CIE-LABlab(19.22, 37.76, -51.69)
CIE-LCHlch(19.22, 64.01, 306.15°)
OKLaboklab(32.04% 0.0355 -0.149)
OKLCHoklch(32.04% 0.153 283.4)
XYZxyz(5.1787, 2.7980, 19.3321)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A7C #677C1A
analogous
#1A367C #2F1A7C #601A7C
triadic
#2F1A7C #7C2F1A #1A7C2F
tetradic
#2F1A7C #7C1A36 #677C1A #1A7C60
square
#2F1A7C #7C1A36 #677C1A #1A7C60
split-complementary
#2F1A7C #7C601A #367C1A
monochromatic
#0A0519 #1C0F49 #2F1A7C #4225AF #5C3BD6

Accessibility & contrast

On white

13.46
#2F1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F1A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A7C
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A7C#FFFFFF#000000##FFFFFF
##2F1A7C1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1a7c;
/* rgb */ color: rgb(47, 26, 124);
/* oklch */ color: oklch(32.0% 0.153 283.4);
Tailwind
colors: {
  custom: {
    50: '#725aa3',
    500: '#2f1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a7c;
$custom-light: #725aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a7c",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 252.857,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3204,
    "c": 0.15317,
    "h": 283.4
  },
  "luminance": 0.02798
}

Semantic roles & 50–950 ramp

primary
#2F1A7C
secondary
#98B042
accent
#E840C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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