#2F1896#2F1896

#2F1896 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.186 H 278.8°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#2F1896
RGBrgb(47, 24, 150)
HSLhsl(251, 72%, 34%)
HSVhsv(251, 84%, 59%)
CMYKcmyk(68.7%, 84%, 0%, 41.2%)
CIE-LABlab(21.80, 46.69, -63.73)
CIE-LCHlch(21.80, 79.01, 306.23°)
OKLaboklab(34.69% 0.0285 -0.184)
OKLCHoklch(34.69% 0.186 278.8)
XYZxyz(7.0022, 3.4590, 29.1469)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1896 #7F9618
analogous
#184096 #2F1896 #6E1896
triadic
#2F1896 #962F18 #18962F
tetradic
#2F1896 #961840 #7F9618 #18966E
square
#2F1896 #961840 #7F9618 #18966E
split-complementary
#2F1896 #966E18 #409618
monochromatic
#0E072C #1E1061 #2F1896 #4020CB #6347E2

Accessibility & contrast

On white

12.41
#2F1896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F1896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1896
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1896#FFFFFF#000000##FFFFFF
##2F18961.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002F94
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1896;
/* rgb */ color: rgb(47, 24, 150);
/* oklch */ color: oklch(34.7% 0.186 278.8);
Tailwind
colors: {
  custom: {
    50: '#785ab6',
    500: '#2f1896',
    950: '#000000',
  },
}
SCSS
$custom: #2f1896;
$custom-light: #785ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1896",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 150
  },
  "hsl": {
    "h": 250.952,
    "s": 72.414,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34693,
    "c": 0.18624,
    "h": 278.8
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#2F1896
secondary
#ACC347
accent
#EF39CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1896

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

Preview Lab → · Contrast checker → · Palette generator →

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