#2F2079#2F2079

#2F2079 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.143 H 282.8°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#2F2079
RGBrgb(47, 32, 121)
HSLhsl(250, 58%, 30%)
HSVhsv(250, 74%, 47%)
CMYKcmyk(61.2%, 73.6%, 0%, 52.5%)
CIE-LABlab(20.11, 33.40, -48.30)
CIE-LCHlch(20.11, 58.73, 304.67°)
OKLaboklab(32.58% 0.0315 -0.1391)
OKLCHoklch(32.58% 0.143 282.8)
XYZxyz(5.1389, 3.0175, 18.3971)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2079 #6A7920
analogous
#203E79 #2F2079 #5B2079
triadic
#2F2079 #792F20 #20792F
tetradic
#2F2079 #79203E #6A7920 #20795B
square
#2F2079 #79203E #6A7920 #20795B
split-complementary
#2F2079 #795B20 #3E7920
monochromatic
#090618 #1C1349 #2F2079 #422DA9 #5C45CE

Accessibility & contrast

On white

13.10
#2F2079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F2079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2079
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2079#FFFFFF#000000##FFFFFF
##2F20791.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#01384A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f2079;
/* rgb */ color: rgb(47, 32, 121);
/* oklch */ color: oklch(32.6% 0.143 282.8);
Tailwind
colors: {
  custom: {
    50: '#715da1',
    500: '#2f2079',
    950: '#000000',
  },
}
SCSS
$custom: #2f2079;
$custom-light: #715da1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2079",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 250.112,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.32582,
    "c": 0.14267,
    "h": 282.8
  },
  "luminance": 0.03018
}

Semantic roles & 50–950 ramp

primary
#2F2079
secondary
#9BAC49
accent
#E146C7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2F2079

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

Preview Lab → · Contrast checker → · Palette generator →

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