#2F2650#2F2650

#2F2650 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.1% C 0.074 H 291.2°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2F2650
RGBrgb(47, 38, 80)
HSLhsl(253, 36%, 23%)
HSVhsv(253, 53%, 31%)
CMYKcmyk(41.3%, 52.5%, 0%, 68.6%)
CIE-LABlab(18.23, 15.78, -24.43)
CIE-LCHlch(18.23, 29.08, 302.86°)
OKLaboklab(30.15% 0.0267 -0.069)
OKLCHoklch(30.15% 0.074 291.2)
XYZxyz(3.3130, 2.5697, 7.9093)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2650 #475026
analogous
#263250 #2F2650 #442650
triadic
#2F2650 #502F26 #26502F
tetradic
#2F2650 #502632 #475026 #265044
square
#2F2650 #502632 #475026 #265044
split-complementary
#2F2650 #504426 #325026
monochromatic
#0C0A15 #171227 #2F2650 #473A79 #604DA3

Accessibility & contrast

On white

13.87
#2F2650 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F2650 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2650
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2650#FFFFFF#000000##FFFFFF
##2F26501.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D52
Deuteranopia (green-blind)
#172C4F
Tritanopia (blue-blind)
#272E37
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f2650;
/* rgb */ color: rgb(47, 38, 80);
/* oklch */ color: oklch(30.1% 0.074 291.2);
Tailwind
colors: {
  custom: {
    50: '#696081',
    500: '#2f2650',
    950: '#000000',
  },
}
SCSS
$custom: #2f2650;
$custom-light: #696081;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2650",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 80
  },
  "hsl": {
    "h": 252.857,
    "s": 35.593,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30147,
    "c": 0.07401,
    "h": 291.2
  },
  "luminance": 0.0257
}

Semantic roles & 50–950 ramp

primary
#2F2650
secondary
#78834F
accent
#CC5CB4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2F2650

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

Preview Lab → · Contrast checker → · Palette generator →

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