#2F1A74#2F1A74

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

Color values

HEX#2F1A74
RGBrgb(47, 26, 116)
HSLhsl(254, 63%, 28%)
HSVhsv(254, 78%, 45%)
CMYKcmyk(59.5%, 77.6%, 0%, 54.5%)
CIE-LABlab(18.38, 35.24, -47.94)
CIE-LCHlch(18.38, 59.49, 306.32°)
OKLaboklab(31.2% 0.0377 -0.138)
OKLCHoklch(31.2% 0.143 285.3)
XYZxyz(4.6931, 2.6038, 16.7749)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A74 #5F741A
analogous
#1A3274 #2F1A74 #5C1A74
triadic
#2F1A74 #742F1A #1A742F
tetradic
#2F1A74 #741A32 #5F741A #1A745C
square
#2F1A74 #741A32 #5F741A #1A745C
split-complementary
#2F1A74 #745C1A #32741A
monochromatic
#0A0619 #1B0F42 #2F1A74 #4325A6 #5B36D2

Accessibility & contrast

On white

13.81
#2F1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A74
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A74#FFFFFF#000000##FFFFFF
##2F1A741.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002A72
Tritanopia (blue-blind)
#0C3345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1a74;
/* rgb */ color: rgb(47, 26, 116);
/* oklch */ color: oklch(31.2% 0.143 285.3);
Tailwind
colors: {
  custom: {
    50: '#71599d',
    500: '#2f1a74',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a74;
$custom-light: #71599d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a74",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 254,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31202,
    "c": 0.14309,
    "h": 285.3
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#2F1A74
secondary
#91A941
accent
#E641C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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