#2F1789#2F1789

#2F1789 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.172 H 281.2°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2F1789
RGBrgb(47, 23, 137)
HSLhsl(253, 71%, 31%)
HSVhsv(253, 83%, 54%)
CMYKcmyk(65.7%, 83.2%, 0%, 46.3%)
CIE-LABlab(20.14, 43.25, -58.39)
CIE-LCHlch(20.14, 72.67, 306.53°)
OKLaboklab(33.11% 0.0333 -0.1685)
OKLCHoklch(33.11% 0.172 281.2)
XYZxyz(5.9926, 3.0228, 23.9297)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1789 #718917
analogous
#173889 #2F1789 #681789
triadic
#2F1789 #892F17 #17892F
tetradic
#2F1789 #891738 #718917 #178968
square
#2F1789 #891738 #718917 #178968
split-complementary
#2F1789 #896817 #388917
monochromatic
#0B0520 #1D0E55 #2F1789 #4120BD #5E3CDE

Accessibility & contrast

On white

13.09
#2F1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1789
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1789#FFFFFF#000000##FFFFFF
##2F17891.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1789;
/* rgb */ color: rgb(47, 23, 137);
/* oklch */ color: oklch(33.1% 0.172 281.2);
Tailwind
colors: {
  custom: {
    50: '#7559ad',
    500: '#2f1789',
    950: '#000000',
  },
}
SCSS
$custom: #2f1789;
$custom-light: #7559ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1789",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 252.632,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33106,
    "c": 0.17176,
    "h": 281.2
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#2F1789
secondary
#A2BD3F
accent
#EE3AC8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1789

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

Preview Lab → · Contrast checker → · Palette generator →

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