#2F1A7F#2F1A7F

#2F1A7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.157 H 282.7°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#2F1A7F
RGBrgb(47, 26, 127)
HSLhsl(252, 66%, 30%)
HSVhsv(252, 80%, 50%)
CMYKcmyk(63%, 79.5%, 0%, 50.2%)
CIE-LABlab(19.54, 38.70, -53.07)
CIE-LCHlch(19.54, 65.68, 306.10°)
OKLaboklab(32.36% 0.0346 -0.153)
OKLCHoklch(32.36% 0.157 282.7)
XYZxyz(5.3713, 2.8751, 20.3465)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A7F #6A7F1A
analogous
#1A387F #2F1A7F #611A7F
triadic
#2F1A7F #7F2F1A #1A7F2F
tetradic
#2F1A7F #7F1A38 #6A7F1A #1A7F61
square
#2F1A7F #7F1A38 #6A7F1A #1A7F61
split-complementary
#2F1A7F #7F611A #387F1A
monochromatic
#090519 #1C104C #2F1A7F #4224B2 #5C3CD7

Accessibility & contrast

On white

13.33
#2F1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A7F
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A7F#FFFFFF#000000##FFFFFF
##2F1A7F1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1a7f;
/* rgb */ color: rgb(47, 26, 127);
/* oklch */ color: oklch(32.4% 0.157 282.7);
Tailwind
colors: {
  custom: {
    50: '#735aa5',
    500: '#2f1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a7f;
$custom-light: #735aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a7f",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 252.475,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.32361,
    "c": 0.1569,
    "h": 282.7
  },
  "luminance": 0.02875
}

Semantic roles & 50–950 ramp

primary
#2F1A7F
secondary
#9BB342
accent
#E93FC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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