#2F1889#2F1889

#2F1889 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.171 H 281.0°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#2F1889
RGBrgb(47, 24, 137)
HSLhsl(252, 70%, 32%)
HSVhsv(252, 82%, 54%)
CMYKcmyk(65.7%, 82.5%, 0%, 46.3%)
CIE-LABlab(20.30, 42.78, -58.13)
CIE-LCHlch(20.30, 72.17, 306.35°)
OKLaboklab(33.22% 0.0327 -0.1677)
OKLCHoklch(33.22% 0.171 281)
XYZxyz(6.0129, 3.0633, 23.9365)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1889 #728918
analogous
#183A89 #2F1889 #681889
triadic
#2F1889 #892F18 #18892F
tetradic
#2F1889 #89183A #728918 #188968
square
#2F1889 #89183A #728918 #188968
split-complementary
#2F1889 #896818 #3A8918
monochromatic
#0B0621 #1D0F55 #2F1889 #4121BD #5F3EDD

Accessibility & contrast

On white

13.02
#2F1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1889
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1889#FFFFFF#000000##FFFFFF
##2F18891.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358C
Deuteranopia (green-blind)
#002D87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1889;
/* rgb */ color: rgb(47, 24, 137);
/* oklch */ color: oklch(33.2% 0.171 281.0);
Tailwind
colors: {
  custom: {
    50: '#7559ad',
    500: '#2f1889',
    950: '#000000',
  },
}
SCSS
$custom: #2f1889;
$custom-light: #7559ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1889",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 252.212,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33217,
    "c": 0.17091,
    "h": 281
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#2F1889
secondary
#A3BD40
accent
#ED3BC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1889

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

Preview Lab → · Contrast checker → · Palette generator →

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