#2F2074#2F2074

#2F2074 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.136 H 283.8°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#2F2074
RGBrgb(47, 32, 116)
HSLhsl(251, 57%, 29%)
HSVhsv(251, 72%, 45%)
CMYKcmyk(59.5%, 72.4%, 0%, 54.5%)
CIE-LABlab(19.63, 31.75, -45.89)
CIE-LCHlch(19.63, 55.80, 304.68°)
OKLaboklab(32.09% 0.0325 -0.1321)
OKLCHoklch(32.09% 0.136 283.8)
XYZxyz(4.8402, 2.8980, 16.8239)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2074 #657420
analogous
#203B74 #2F2074 #592074
triadic
#2F2074 #742F20 #20742F
tetradic
#2F2074 #74203B #657420 #207459
square
#2F2074 #74203B #657420 #207459
split-complementary
#2F2074 #745920 #3B7420
monochromatic
#0A0718 #1C1344 #2F2074 #422DA4 #5B43CB

Accessibility & contrast

On white

13.29
#2F2074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2074
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2074#FFFFFF#000000##FFFFFF
##2F20741.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#0B3647
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f2074;
/* rgb */ color: rgb(47, 32, 116);
/* oklch */ color: oklch(32.1% 0.136 283.8);
Tailwind
colors: {
  custom: {
    50: '#705d9d',
    500: '#2f2074',
    950: '#000000',
  },
}
SCSS
$custom: #2f2074;
$custom-light: #705d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2074",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 250.714,
    "s": 56.757,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32089,
    "c": 0.13601,
    "h": 283.8
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#2F2074
secondary
#97A848
accent
#E048C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2074

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

Preview Lab → · Contrast checker → · Palette generator →

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