#2F1975#2F1975

#2F1975 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.145 H 285.2°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2F1975
RGBrgb(47, 25, 117)
HSLhsl(254, 65%, 28%)
HSVhsv(254, 79%, 46%)
CMYKcmyk(59.8%, 78.6%, 0%, 54.1%)
CIE-LABlab(18.29, 36.10, -48.73)
CIE-LCHlch(18.29, 60.64, 306.53°)
OKLaboklab(31.17% 0.0382 -0.1403)
OKLCHoklch(31.17% 0.145 285.2)
XYZxyz(4.7298, 2.5837, 17.0756)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1975 #5F7519
analogous
#193175 #2F1975 #5D1975
triadic
#2F1975 #752F19 #19752F
tetradic
#2F1975 #751931 #5F7519 #19755D
square
#2F1975 #751931 #5F7519 #19755D
split-complementary
#2F1975 #755D19 #317519
monochromatic
#0A0519 #1B0E43 #2F1975 #4324A7 #5B35D4

Accessibility & contrast

On white

13.84
#2F1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1975
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1975#FFFFFF#000000##FFFFFF
##2F19751.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#0A3346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1975;
/* rgb */ color: rgb(47, 25, 117);
/* oklch */ color: oklch(31.2% 0.145 285.2);
Tailwind
colors: {
  custom: {
    50: '#71599e',
    500: '#2f1975',
    950: '#000000',
  },
}
SCSS
$custom: #2f1975;
$custom-light: #71599e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1975",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 254.348,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31171,
    "c": 0.14545,
    "h": 285.2
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#2F1975
secondary
#91AA40
accent
#E840C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1975

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

Preview Lab → · Contrast checker → · Palette generator →

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