#2F1A73#2F1A73

#2F1A73 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.142 H 285.5°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2F1A73
RGBrgb(47, 26, 115)
HSLhsl(254, 63%, 28%)
HSVhsv(254, 77%, 45%)
CMYKcmyk(59.1%, 77.4%, 0%, 54.9%)
CIE-LABlab(18.28, 34.92, -47.46)
CIE-LCHlch(18.28, 58.92, 306.34°)
OKLaboklab(31.1% 0.038 -0.1366)
OKLCHoklch(31.1% 0.142 285.5)
XYZxyz(4.6353, 2.5807, 16.4702)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A73 #5E731A
analogous
#1A3273 #2F1A73 #5B1A73
triadic
#2F1A73 #732F1A #1A732F
tetradic
#2F1A73 #731A32 #5E731A #1A735B
square
#2F1A73 #731A32 #5E731A #1A735B
split-complementary
#2F1A73 #735B1A #32731A
monochromatic
#0A0619 #1B0F41 #2F1A73 #4325A5 #5B36D2

Accessibility & contrast

On white

13.85
#2F1A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A73
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A73#FFFFFF#000000##FFFFFF
##2F1A731.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#0E3345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1a73;
/* rgb */ color: rgb(47, 26, 115);
/* oklch */ color: oklch(31.1% 0.142 285.5);
Tailwind
colors: {
  custom: {
    50: '#70599c',
    500: '#2f1a73',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a73;
$custom-light: #70599c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a73",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 115
  },
  "hsl": {
    "h": 254.157,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31099,
    "c": 0.14181,
    "h": 285.5
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#2F1A73
secondary
#90A841
accent
#E642BF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1A73

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

Preview Lab → · Contrast checker → · Palette generator →

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