#2F1F74#2F1F74

#2F1F74 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.137 H 284.1°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#2F1F74
RGBrgb(47, 31, 116)
HSLhsl(251, 58%, 29%)
HSVhsv(251, 73%, 45%)
CMYKcmyk(59.5%, 73.3%, 0%, 54.5%)
CIE-LABlab(19.41, 32.35, -46.25)
CIE-LCHlch(19.41, 56.44, 304.97°)
OKLaboklab(31.93% 0.0334 -0.1331)
OKLCHoklch(31.93% 0.137 284.1)
XYZxyz(4.8137, 2.8450, 16.8151)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F74 #64741F
analogous
#1F3A74 #2F1F74 #5A1F74
triadic
#2F1F74 #742F1F #1F742F
tetradic
#2F1F74 #741F3A #64741F #1F745A
square
#2F1F74 #741F3A #64741F #1F745A
split-complementary
#2F1F74 #745A1F #3A741F
monochromatic
#0A0618 #1B1244 #2F1F74 #432CA4 #5B41CC

Accessibility & contrast

On white

13.38
#2F1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F74
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F74#FFFFFF#000000##FFFFFF
##2F1F741.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#0B3647
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1f74;
/* rgb */ color: rgb(47, 31, 116);
/* oklch */ color: oklch(31.9% 0.137 284.1);
Tailwind
colors: {
  custom: {
    50: '#705c9d',
    500: '#2f1f74',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f74;
$custom-light: #705c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f74",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 251.294,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31933,
    "c": 0.13724,
    "h": 284.1
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#2F1F74
secondary
#96A847
accent
#E147C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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