#2F1883#2F1883

#2F1883 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.164 H 282.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1883
RGBrgb(47, 24, 131)
HSLhsl(253, 69%, 30%)
HSVhsv(253, 82%, 51%)
CMYKcmyk(64.1%, 81.7%, 0%, 48.6%)
CIE-LABlab(19.62, 40.95, -55.46)
CIE-LCHlch(19.62, 68.94, 306.44°)
OKLaboklab(32.55% 0.0347 -0.16)
OKLCHoklch(32.55% 0.164 282.2)
XYZxyz(5.5944, 2.8959, 21.7325)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1883 #6C8318
analogous
#183783 #2F1883 #641883
triadic
#2F1883 #832F18 #18832F
tetradic
#2F1883 #831837 #6C8318 #188364
square
#2F1883 #831837 #6C8318 #188364
split-complementary
#2F1883 #836418 #378318
monochromatic
#0A051C #1C0F4F #2F1883 #4221B7 #5D3ADB

Accessibility & contrast

On white

13.30
#2F1883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1883
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1883#FFFFFF#000000##FFFFFF
##2F18831.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1883;
/* rgb */ color: rgb(47, 24, 131);
/* oklch */ color: oklch(32.6% 0.164 282.2);
Tailwind
colors: {
  custom: {
    50: '#7459a8',
    500: '#2f1883',
    950: '#000000',
  },
}
SCSS
$custom: #2f1883;
$custom-light: #7459a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1883",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 252.897,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32551,
    "c": 0.1637,
    "h": 282.2
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#2F1883
secondary
#9DB740
accent
#EC3CC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1883

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

Preview Lab → · Contrast checker → · Palette generator →

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