#2F207A#2F207A

#2F207A is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.144 H 282.6°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#2F207A
RGBrgb(47, 32, 122)
HSLhsl(250, 58%, 30%)
HSVhsv(250, 74%, 48%)
CMYKcmyk(61.5%, 73.8%, 0%, 52.2%)
CIE-LABlab(20.21, 33.73, -48.78)
CIE-LCHlch(20.21, 59.31, 304.67°)
OKLaboklab(32.68% 0.0313 -0.1405)
OKLCHoklch(32.68% 0.144 282.6)
XYZxyz(5.2006, 3.0422, 18.7217)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F207A #6B7A20
analogous
#203E7A #2F207A #5C207A
triadic
#2F207A #7A2F20 #207A2F
tetradic
#2F207A #7A203E #6B7A20 #207A5C
square
#2F207A #7A203E #6B7A20 #207A5C
split-complementary
#2F207A #7A5C20 #3E7A20
monochromatic
#0A0719 #1C134A #2F207A #422DAA #5D46CE

Accessibility & contrast

On white

13.05
#2F207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F207A
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F207A#FFFFFF#000000##FFFFFF
##2F207A1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f207a;
/* rgb */ color: rgb(47, 32, 122);
/* oklch */ color: oklch(32.7% 0.144 282.6);
Tailwind
colors: {
  custom: {
    50: '#715da1',
    500: '#2f207a',
    950: '#000000',
  },
}
SCSS
$custom: #2f207a;
$custom-light: #715da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f207a",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 250,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32682,
    "c": 0.14398,
    "h": 282.6
  },
  "luminance": 0.03043
}

Semantic roles & 50–950 ramp

primary
#2F207A
secondary
#9CAD49
accent
#E246C8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F207A

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

Preview Lab → · Contrast checker → · Palette generator →

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