#2F1A67#2F1A67

#2F1A67 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.126 H 288.9°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1A67
RGBrgb(47, 26, 103)
HSLhsl(256, 60%, 25%)
HSVhsv(256, 75%, 40%)
CMYKcmyk(54.4%, 74.8%, 0%, 59.6%)
CIE-LABlab(17.09, 31.11, -41.59)
CIE-LCHlch(17.09, 51.94, 306.80°)
OKLaboklab(29.9% 0.0409 -0.1194)
OKLCHoklch(29.9% 0.126 288.9)
XYZxyz(3.9892, 2.3222, 13.0674)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A67 #52671A
analogous
#1A2B67 #2F1A67 #561A67
triadic
#2F1A67 #672F1A #1A672F
tetradic
#2F1A67 #671A2B #52671A #1A6756
square
#2F1A67 #671A2B #52671A #1A6756
split-complementary
#2F1A67 #67561A #2B671A
monochromatic
#0B0618 #190E36 #2F1A67 #452698 #5C33C9

Accessibility & contrast

On white

14.34
#2F1A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F1A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A67
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A67#FFFFFF#000000##FFFFFF
##2F1A671.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#1B2E3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1a67;
/* rgb */ color: rgb(47, 26, 103);
/* oklch */ color: oklch(29.9% 0.126 288.9);
Tailwind
colors: {
  custom: {
    50: '#6e5893',
    500: '#2f1a67',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a67;
$custom-light: #6e5893;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a67",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 256.364,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29897,
    "c": 0.12624,
    "h": 288.9
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#2F1A67
secondary
#839D40
accent
#E345B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1A67

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

Preview Lab → · Contrast checker → · Palette generator →

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