#2F1994#2F1994

#2F1994 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.183 H 279.0°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#2F1994
RGBrgb(47, 25, 148)
HSLhsl(251, 71%, 34%)
HSVhsv(251, 83%, 58%)
CMYKcmyk(68.2%, 83.1%, 0%, 42%)
CIE-LABlab(21.72, 45.64, -62.63)
CIE-LCHlch(21.72, 77.50, 306.09°)
OKLaboklab(34.57% 0.0287 -0.1809)
OKLCHoklch(34.57% 0.183 279)
XYZxyz(6.8635, 3.4371, 28.3130)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1994 #7E9419
analogous
#194194 #2F1994 #6D1994
triadic
#2F1994 #942F19 #19942F
tetradic
#2F1994 #941941 #7E9419 #19946D
square
#2F1994 #941941 #7E9419 #19946D
split-complementary
#2F1994 #946D19 #419419
monochromatic
#0E072B #1E1060 #2F1994 #4022C8 #6347E0

Accessibility & contrast

On white

12.44
#2F1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1994
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1994#FFFFFF#000000##FFFFFF
##2F19941.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1994;
/* rgb */ color: rgb(47, 25, 148);
/* oklch */ color: oklch(34.6% 0.183 279.0);
Tailwind
colors: {
  custom: {
    50: '#775bb5',
    500: '#2f1994',
    950: '#000000',
  },
}
SCSS
$custom: #2f1994;
$custom-light: #775bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1994",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 250.732,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3457,
    "c": 0.18312,
    "h": 279
  },
  "luminance": 0.03438
}

Semantic roles & 50–950 ramp

primary
#2F1994
secondary
#ACC147
accent
#EE3ACE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1994

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

Preview Lab → · Contrast checker → · Palette generator →

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