#2F1D74#2F1D74

#2F1D74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.140 H 284.6°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#2F1D74
RGBrgb(47, 29, 116)
HSLhsl(252, 60%, 28%)
HSVhsv(252, 75%, 45%)
CMYKcmyk(59.5%, 75%, 0%, 54.5%)
CIE-LABlab(18.99, 33.54, -46.94)
CIE-LCHlch(18.99, 57.69, 305.54°)
OKLaboklab(31.63% 0.0352 -0.1351)
OKLCHoklch(31.63% 0.14 284.6)
XYZxyz(4.7631, 2.7437, 16.7982)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D74 #62741D
analogous
#1D3674 #2F1D74 #5A1D74
triadic
#2F1D74 #742F1D #1D742F
tetradic
#2F1D74 #741D36 #62741D #1D745A
square
#2F1D74 #741D36 #62741D #1D745A
split-complementary
#2F1D74 #745A1D #36741D
monochromatic
#0A0618 #1B1143 #2F1D74 #4329A5 #5B3DCE

Accessibility & contrast

On white

13.56
#2F1D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D74
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D74#FFFFFF#000000##FFFFFF
##2F1D741.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#0C3546
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1d74;
/* rgb */ color: rgb(47, 29, 116);
/* oklch */ color: oklch(31.6% 0.140 284.6);
Tailwind
colors: {
  custom: {
    50: '#705b9d',
    500: '#2f1d74',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d74;
$custom-light: #705b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d74",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 252.414,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3163,
    "c": 0.13965,
    "h": 284.6
  },
  "luminance": 0.02744
}

Semantic roles & 50–950 ramp

primary
#2F1D74
secondary
#94A845
accent
#E345C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1D74

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

Preview Lab → · Contrast checker → · Palette generator →

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