#2F2170#2F2170

#2F2170 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 31.9% C 0.129 H 284.4°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#2F2170
RGBrgb(47, 33, 112)
HSLhsl(251, 54%, 28%)
HSVhsv(251, 71%, 44%)
CMYKcmyk(58%, 70.5%, 0%, 56.1%)
CIE-LABlab(19.48, 29.80, -43.55)
CIE-LCHlch(19.48, 52.77, 304.38°)
OKLaboklab(31.87% 0.0322 -0.1252)
OKLCHoklch(31.87% 0.129 284.4)
XYZxyz(4.6399, 2.8616, 15.6339)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2170 #627021
analogous
#213A70 #2F2170 #562170
triadic
#2F2170 #702F21 #21702F
tetradic
#2F2170 #70213A #627021 #217056
square
#2F2170 #70213A #627021 #217056
split-complementary
#2F2170 #705621 #3A7021
monochromatic
#0A0718 #1B1341 #2F2170 #432F9F #5B44C8

Accessibility & contrast

On white

13.36
#2F2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2170
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2170#FFFFFF#000000##FFFFFF
##2F21701.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#113545
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f2170;
/* rgb */ color: rgb(47, 33, 112);
/* oklch */ color: oklch(31.9% 0.129 284.4);
Tailwind
colors: {
  custom: {
    50: '#6f5d9a',
    500: '#2f2170',
    950: '#000000',
  },
}
SCSS
$custom: #2f2170;
$custom-light: #6f5d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2170",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 250.633,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31866,
    "c": 0.1293,
    "h": 284.4
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#2F2170
secondary
#94A449
accent
#DE4AC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2170

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

Preview Lab → · Contrast checker → · Palette generator →

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