#2F1489#2F1489

#2F1489 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.174 H 281.5°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#2F1489
RGBrgb(47, 20, 137)
HSLhsl(254, 75%, 31%)
HSVhsv(254, 85%, 54%)
CMYKcmyk(65.7%, 85.4%, 0%, 46.3%)
CIE-LABlab(19.68, 44.58, -59.14)
CIE-LCHlch(19.68, 74.07, 307.01°)
OKLaboklab(32.79% 0.0347 -0.1706)
OKLCHoklch(32.79% 0.174 281.5)
XYZxyz(5.9364, 2.9103, 23.9110)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1489 #6E8914
analogous
#143389 #2F1489 #691489
triadic
#2F1489 #892F14 #14892F
tetradic
#2F1489 #891433 #6E8914 #148969
square
#2F1489 #891433 #6E8914 #148969
split-complementary
#2F1489 #896914 #338914
monochromatic
#0A041E #1D0C54 #2F1489 #411CBE #5D36E2

Accessibility & contrast

On white

13.27
#2F1489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F1489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1489
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1489#FFFFFF#000000##FFFFFF
##2F14891.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1489;
/* rgb */ color: rgb(47, 20, 137);
/* oklch */ color: oklch(32.8% 0.174 281.5);
Tailwind
colors: {
  custom: {
    50: '#7557ad',
    500: '#2f1489',
    950: '#000000',
  },
}
SCSS
$custom: #2f1489;
$custom-light: #7557ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1489",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 253.846,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32794,
    "c": 0.17415,
    "h": 281.5
  },
  "luminance": 0.02911
}

Semantic roles & 50–950 ramp

primary
#2F1489
secondary
#9FBD3C
accent
#F137C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #2F1489

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

Preview Lab → · Contrast checker → · Palette generator →

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