#2F1885#2F1885

#2F1885 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.166 H 281.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#2F1885
RGBrgb(47, 24, 133)
HSLhsl(253, 69%, 31%)
HSVhsv(253, 82%, 52%)
CMYKcmyk(64.7%, 82%, 0%, 47.8%)
CIE-LABlab(19.84, 41.56, -56.36)
CIE-LCHlch(19.84, 70.03, 306.41°)
OKLaboklab(32.77% 0.034 -0.1626)
OKLCHoklch(32.77% 0.166 281.8)
XYZxyz(5.7312, 2.9506, 22.4533)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1885 #6E8518
analogous
#183785 #2F1885 #651885
triadic
#2F1885 #852F18 #18852F
tetradic
#2F1885 #851837 #6E8518 #188565
square
#2F1885 #851837 #6E8518 #188565
split-complementary
#2F1885 #856518 #378518
monochromatic
#0A051D #1D0F51 #2F1885 #4121B9 #5D3CDC

Accessibility & contrast

On white

13.21
#2F1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1885
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1885#FFFFFF#000000##FFFFFF
##2F18851.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1885;
/* rgb */ color: rgb(47, 24, 133);
/* oklch */ color: oklch(32.8% 0.166 281.8);
Tailwind
colors: {
  custom: {
    50: '#7459aa',
    500: '#2f1885',
    950: '#000000',
  },
}
SCSS
$custom: #2f1885;
$custom-light: #7459aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1885",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 252.661,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32772,
    "c": 0.16612,
    "h": 281.8
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#2F1885
secondary
#9FB940
accent
#EC3CC7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1885

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

Preview Lab → · Contrast checker → · Palette generator →

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