#2F1283#2F1283

#2F1283 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.169 H 283.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2F1283
RGBrgb(47, 18, 131)
HSLhsl(255, 76%, 29%)
HSVhsv(255, 86%, 51%)
CMYKcmyk(64.1%, 86.3%, 0%, 48.6%)
CIE-LABlab(18.69, 43.67, -57.00)
CIE-LCHlch(18.69, 71.80, 307.46°)
OKLaboklab(31.91% 0.0379 -0.1644)
OKLCHoklch(31.91% 0.169 283)
XYZxyz(5.4841, 2.6753, 21.6957)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1283 #668312
analogous
#122E83 #2F1283 #681283
triadic
#2F1283 #832F12 #12832F
tetradic
#2F1283 #83122E #668312 #128368
square
#2F1283 #83122E #668312 #128368
split-complementary
#2F1283 #836812 #2E8312
monochromatic
#0A041B #1C0B4D #2F1283 #4219B9 #5C2DE2

Accessibility & contrast

On white

13.68
#2F1283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F1283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1283
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1283#FFFFFF#000000##FFFFFF
##2F12831.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00364D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1283;
/* rgb */ color: rgb(47, 18, 131);
/* oklch */ color: oklch(31.9% 0.169 283.0);
Tailwind
colors: {
  custom: {
    50: '#7456a8',
    500: '#2f1283',
    950: '#000000',
  },
}
SCSS
$custom: #2f1283;
$custom-light: #7456a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1283",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 131
  },
  "hsl": {
    "h": 255.398,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3191,
    "c": 0.1687,
    "h": 283
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#2F1283
secondary
#98B838
accent
#F235C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1283

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

Preview Lab → · Contrast checker → · Palette generator →

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