#2F1685#2F1685

#2F1685 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.168 H 282.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#2F1685
RGBrgb(47, 22, 133)
HSLhsl(254, 72%, 30%)
HSVhsv(254, 83%, 52%)
CMYKcmyk(64.7%, 83.5%, 0%, 47.8%)
CIE-LABlab(19.52, 42.51, -56.89)
CIE-LCHlch(19.52, 71.02, 306.76°)
OKLaboklab(32.55% 0.0351 -0.1641)
OKLCHoklch(32.55% 0.168 282.1)
XYZxyz(5.6915, 2.8712, 22.4400)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1685 #6C8516
analogous
#163485 #2F1685 #671685
triadic
#2F1685 #852F16 #16852F
tetradic
#2F1685 #851634 #6C8516 #168567
square
#2F1685 #851634 #6C8516 #168567
split-complementary
#2F1685 #856716 #348516
monochromatic
#0A051C #1C0D50 #2F1685 #421FBA #5D37DE

Accessibility & contrast

On white

13.34
#2F1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1685
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1685#FFFFFF#000000##FFFFFF
##2F16851.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1685;
/* rgb */ color: rgb(47, 22, 133);
/* oklch */ color: oklch(32.5% 0.168 282.1);
Tailwind
colors: {
  custom: {
    50: '#7458aa',
    500: '#2f1685',
    950: '#000000',
  },
}
SCSS
$custom: #2f1685;
$custom-light: #7458aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1685",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 253.514,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32547,
    "c": 0.16785,
    "h": 282.1
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#2F1685
secondary
#9DB93E
accent
#EE39C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1685

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

Preview Lab → · Contrast checker → · Palette generator →

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