#2F2270#2F2270

#2F2270 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.128 H 284.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2F2270
RGBrgb(47, 34, 112)
HSLhsl(250, 53%, 29%)
HSVhsv(250, 70%, 44%)
CMYKcmyk(58%, 69.6%, 0%, 56.1%)
CIE-LABlab(19.71, 29.17, -43.18)
CIE-LCHlch(19.71, 52.11, 304.05°)
OKLaboklab(32.03% 0.0313 -0.1241)
OKLCHoklch(32.03% 0.128 284.1)
XYZxyz(4.6681, 2.9180, 15.6433)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2270 #637022
analogous
#223C70 #2F2270 #562270
triadic
#2F2270 #702F22 #22702F
tetradic
#2F2270 #70223C #637022 #227056
square
#2F2270 #70223C #637022 #227056
split-complementary
#2F2270 #705622 #3C7022
monochromatic
#0A0717 #1B1441 #2F2270 #43309F #5B46C7

Accessibility & contrast

On white

13.26
#2F2270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2F2270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2270
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2270#FFFFFF#000000##FFFFFF
##2F22701.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#113646
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2270;
/* rgb */ color: rgb(47, 34, 112);
/* oklch */ color: oklch(32.0% 0.128 284.1);
Tailwind
colors: {
  custom: {
    50: '#6f5e9a',
    500: '#2f2270',
    950: '#000000',
  },
}
SCSS
$custom: #2f2270;
$custom-light: #6f5e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2270",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 250,
    "s": 53.425,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32033,
    "c": 0.12798,
    "h": 284.1
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#2F2270
secondary
#95A34A
accent
#DD4BC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2270

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

Preview Lab → · Contrast checker → · Palette generator →

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