#2F1380#2F1380

#2F1380 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.7% C 0.164 H 283.5°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1380
RGBrgb(47, 19, 128)
HSLhsl(255, 74%, 29%)
HSVhsv(255, 85%, 50%)
CMYKcmyk(63.3%, 85.2%, 0%, 49.8%)
CIE-LABlab(18.49, 42.37, -55.44)
CIE-LCHlch(18.49, 69.77, 307.39°)
OKLaboklab(31.67% 0.0385 -0.1598)
OKLCHoklch(31.67% 0.164 283.5)
XYZxyz(5.3002, 2.6282, 20.6459)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1380 #648013
analogous
#132E80 #2F1380 #661380
triadic
#2F1380 #802F13 #13802F
tetradic
#2F1380 #80132E #648013 #138066
square
#2F1380 #80132E #648013 #138066
split-complementary
#2F1380 #806613 #2E8013
monochromatic
#0A041B #1B0B4B #2F1380 #431BB5 #5B2DE0

Accessibility & contrast

On white

13.76
#2F1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F1380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1380
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1380#FFFFFF#000000##FFFFFF
##2F13801.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1380;
/* rgb */ color: rgb(47, 19, 128);
/* oklch */ color: oklch(31.7% 0.164 283.5);
Tailwind
colors: {
  custom: {
    50: '#7456a6',
    500: '#2f1380',
    950: '#000000',
  },
}
SCSS
$custom: #2f1380;
$custom-light: #7456a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1380",
  "rgb": {
    "r": 47,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 255.413,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31667,
    "c": 0.16442,
    "h": 283.5
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#2F1380
secondary
#96B539
accent
#F137C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1380

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

Preview Lab → · Contrast checker → · Palette generator →

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