#2F2069#2F2069

#2F2069 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.0% C 0.121 H 286.5°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#2F2069
RGBrgb(47, 32, 105)
HSLhsl(252, 53%, 27%)
HSVhsv(252, 70%, 41%)
CMYKcmyk(55.2%, 69.5%, 0%, 58.8%)
CIE-LABlab(18.61, 28.10, -40.42)
CIE-LCHlch(18.61, 49.23, 304.80°)
OKLaboklab(31.04% 0.0343 -0.116)
OKLCHoklch(31.04% 0.121 286.5)
XYZxyz(4.2378, 2.6571, 13.6514)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2069 #5A6920
analogous
#203669 #2F2069 #542069
triadic
#2F2069 #692F20 #20692F
tetradic
#2F2069 #692036 #5A6920 #206954
square
#2F2069 #692036 #5A6920 #206954
split-complementary
#2F2069 #695420 #366920
monochromatic
#0A0717 #1A123A #2F2069 #442E98 #5A3FC4

Accessibility & contrast

On white

13.71
#2F2069 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F2069 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2069
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2069#FFFFFF#000000##FFFFFF
##2F20691.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6B
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#183241
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f2069;
/* rgb */ color: rgb(47, 32, 105);
/* oklch */ color: oklch(31.0% 0.121 286.5);
Tailwind
colors: {
  custom: {
    50: '#6e5c95',
    500: '#2f2069',
    950: '#000000',
  },
}
SCSS
$custom: #2f2069;
$custom-light: #6e5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2069",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 105
  },
  "hsl": {
    "h": 252.329,
    "s": 53.285,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31044,
    "c": 0.12099,
    "h": 286.5
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#2F2069
secondary
#8C9D48
accent
#DD4BBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2F2069

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

Preview Lab → · Contrast checker → · Palette generator →

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