#2F1976#2F1976

#2F1976 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.147 H 285.0°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2F1976
RGBrgb(47, 25, 118)
HSLhsl(254, 65%, 28%)
HSVhsv(254, 79%, 46%)
CMYKcmyk(60.2%, 78.8%, 0%, 53.7%)
CIE-LABlab(18.40, 36.41, -49.20)
CIE-LCHlch(18.40, 61.21, 306.50°)
OKLaboklab(31.28% 0.0379 -0.1417)
OKLCHoklch(31.28% 0.147 285)
XYZxyz(4.7889, 2.6073, 17.3869)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1976 #607619
analogous
#193176 #2F1976 #5D1976
triadic
#2F1976 #762F19 #19762F
tetradic
#2F1976 #761931 #607619 #19765D
square
#2F1976 #761931 #607619 #19765D
split-complementary
#2F1976 #765D19 #317619
monochromatic
#0A0519 #1B0E43 #2F1976 #4324A8 #5B35D4

Accessibility & contrast

On white

13.80
#2F1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1976
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1976#FFFFFF#000000##FFFFFF
##2F19761.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#083346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1976;
/* rgb */ color: rgb(47, 25, 118);
/* oklch */ color: oklch(31.3% 0.147 285.0);
Tailwind
colors: {
  custom: {
    50: '#71599e',
    500: '#2f1976',
    950: '#000000',
  },
}
SCSS
$custom: #2f1976;
$custom-light: #71599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1976",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 254.194,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31276,
    "c": 0.14671,
    "h": 285
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#2F1976
secondary
#92AB40
accent
#E840C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1976

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

Preview Lab → · Contrast checker → · Palette generator →

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