#2F1670#2F1670

#2F1670 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.142 H 287.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2F1670
RGBrgb(47, 22, 112)
HSLhsl(257, 67%, 26%)
HSVhsv(257, 80%, 44%)
CMYKcmyk(58%, 80.4%, 0%, 56.1%)
CIE-LABlab(17.22, 36.13, -47.27)
CIE-LCHlch(17.22, 59.49, 307.39°)
OKLaboklab(30.26% 0.042 -0.136)
OKLCHoklch(30.26% 0.142 287.2)
XYZxyz(4.3830, 2.3478, 15.5483)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1670 #577016
analogous
#162A70 #2F1670 #5C1670
triadic
#2F1670 #702F16 #16702F
tetradic
#2F1670 #70162A #577016 #16705C
square
#2F1670 #70162A #577016 #16705C
split-complementary
#2F1670 #705C16 #2A7016
monochromatic
#0B051A #1A0C3D #2F1670 #4420A3 #5A2BD5

Accessibility & contrast

On white

14.29
#2F1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1670
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1670#FFFFFF#000000##FFFFFF
##2F16701.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00286E
Tritanopia (blue-blind)
#123042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1670;
/* rgb */ color: rgb(47, 22, 112);
/* oklch */ color: oklch(30.3% 0.142 287.2);
Tailwind
colors: {
  custom: {
    50: '#70579a',
    500: '#2f1670',
    950: '#000000',
  },
}
SCSS
$custom: #2f1670;
$custom-light: #70579a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1670",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 256.667,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30258,
    "c": 0.14238,
    "h": 287.2
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#2F1670
secondary
#88A63C
accent
#EA3EBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1670

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

Preview Lab → · Contrast checker → · Palette generator →

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