#2F1A96#2F1A96

#2F1A96 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.185 H 278.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2F1A96
RGBrgb(47, 26, 150)
HSLhsl(250, 70%, 35%)
HSVhsv(250, 83%, 59%)
CMYKcmyk(68.7%, 82.7%, 0%, 41.2%)
CIE-LABlab(22.10, 45.79, -63.22)
CIE-LCHlch(22.10, 78.06, 305.91°)
OKLaboklab(34.91% 0.0276 -0.1826)
OKLCHoklch(34.91% 0.185 278.6)
XYZxyz(7.0449, 3.5445, 29.1612)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A96 #81961A
analogous
#1A4396 #2F1A96 #6D1A96
triadic
#2F1A96 #962F1A #1A962F
tetradic
#2F1A96 #961A43 #81961A #1A966D
square
#2F1A96 #961A43 #81961A #1A966D
split-complementary
#2F1A96 #966D1A #43961A
monochromatic
#0E082E #1F1162 #2F1A96 #3F23CA #644BE0

Accessibility & contrast

On white

12.29
#2F1A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F1A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A96
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A96#FFFFFF#000000##FFFFFF
##2F1A961.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1a96;
/* rgb */ color: rgb(47, 26, 150);
/* oklch */ color: oklch(34.9% 0.185 278.6);
Tailwind
colors: {
  custom: {
    50: '#785bb6',
    500: '#2f1a96',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a96;
$custom-light: #785bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a96",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 250.161,
    "s": 70.455,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34906,
    "c": 0.18466,
    "h": 278.6
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#2F1A96
secondary
#ADC24A
accent
#ED3BCF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1A96

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

Preview Lab → · Contrast checker → · Palette generator →

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