#2F1A68#2F1A68

#2F1A68 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.128 H 288.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1A68
RGBrgb(47, 26, 104)
HSLhsl(256, 60%, 25%)
HSVhsv(256, 75%, 41%)
CMYKcmyk(54.8%, 75%, 0%, 59.2%)
CIE-LABlab(17.19, 31.43, -42.09)
CIE-LCHlch(17.19, 52.53, 306.75°)
OKLaboklab(30% 0.0406 -0.1209)
OKLCHoklch(30% 0.128 288.6)
XYZxyz(4.0396, 2.3424, 13.3333)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A68 #53681A
analogous
#1A2C68 #2F1A68 #561A68
triadic
#2F1A68 #682F1A #1A682F
tetradic
#2F1A68 #681A2C #53681A #1A6856
square
#2F1A68 #681A2C #53681A #1A6856
split-complementary
#2F1A68 #68561A #2C681A
monochromatic
#0B0618 #190E37 #2F1A68 #452699 #5B32CA

Accessibility & contrast

On white

14.30
#2F1A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F1A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A68
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A68#FFFFFF#000000##FFFFFF
##2F1A681.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002866
Tritanopia (blue-blind)
#1A2E3F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1a68;
/* rgb */ color: rgb(47, 26, 104);
/* oklch */ color: oklch(30.0% 0.128 288.6);
Tailwind
colors: {
  custom: {
    50: '#6e5894',
    500: '#2f1a68',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a68;
$custom-light: #6e5894;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a68",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 256.154,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29995,
    "c": 0.12756,
    "h": 288.6
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#2F1A68
secondary
#849D40
accent
#E345B8
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1A68

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

Preview Lab → · Contrast checker → · Palette generator →

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