#2F1689#2F1689

#2F1689 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.173 H 281.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#2F1689
RGBrgb(47, 22, 137)
HSLhsl(253, 72%, 31%)
HSVhsv(253, 84%, 54%)
CMYKcmyk(65.7%, 83.9%, 0%, 46.3%)
CIE-LABlab(19.98, 43.71, -58.65)
CIE-LCHlch(19.98, 73.15, 306.69°)
OKLaboklab(33% 0.0338 -0.1693)
OKLCHoklch(33% 0.173 281.3)
XYZxyz(5.9731, 2.9838, 23.9232)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1689 #708916
analogous
#163789 #2F1689 #681689
triadic
#2F1689 #892F16 #16892F
tetradic
#2F1689 #891637 #708916 #168968
square
#2F1689 #891637 #708916 #168968
split-complementary
#2F1689 #896816 #378916
monochromatic
#0B0520 #1D0E54 #2F1689 #411EBE #5E3ADF

Accessibility & contrast

On white

13.15
#2F1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1689
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1689#FFFFFF#000000##FFFFFF
##2F16891.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1689;
/* rgb */ color: rgb(47, 22, 137);
/* oklch */ color: oklch(33.0% 0.173 281.3);
Tailwind
colors: {
  custom: {
    50: '#7558ad',
    500: '#2f1689',
    950: '#000000',
  },
}
SCSS
$custom: #2f1689;
$custom-light: #7558ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1689",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 253.043,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32999,
    "c": 0.17258,
    "h": 281.3
  },
  "luminance": 0.02984
}

Semantic roles & 50–950 ramp

primary
#2F1689
secondary
#A1BD3E
accent
#EF39C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1689

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

Preview Lab → · Contrast checker → · Palette generator →

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