#2F2264#2F2264

#2F2264 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 30.9% C 0.111 H 287.1°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#2F2264
RGBrgb(47, 34, 100)
HSLhsl(252, 49%, 26%)
HSVhsv(252, 66%, 39%)
CMYKcmyk(53%, 66%, 0%, 60.8%)
CIE-LABlab(18.66, 25.14, -37.06)
CIE-LCHlch(18.66, 44.79, 304.15°)
OKLaboklab(30.94% 0.0326 -0.1061)
OKLCHoklch(30.94% 0.111 287.1)
XYZxyz(4.0439, 2.6683, 12.3561)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2264 #576422
analogous
#223664 #2F2264 #502264
triadic
#2F2264 #642F22 #22642F
tetradic
#2F2264 #642236 #576422 #226450
square
#2F2264 #642236 #576422 #226450
split-complementary
#2F2264 #645022 #366422
monochromatic
#0B0817 #1A1236 #2F2264 #443292 #5A42BF

Accessibility & contrast

On white

13.69
#2F2264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2264
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2264#FFFFFF#000000##FFFFFF
##2F22641.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#002C63
Tritanopia (blue-blind)
#1C323F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f2264;
/* rgb */ color: rgb(47, 34, 100);
/* oklch */ color: oklch(30.9% 0.111 287.1);
Tailwind
colors: {
  custom: {
    50: '#6d5e91',
    500: '#2f2264',
    950: '#000000',
  },
}
SCSS
$custom: #2f2264;
$custom-light: #6d5e91;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2264",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 100
  },
  "hsl": {
    "h": 251.818,
    "s": 49.254,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30944,
    "c": 0.11105,
    "h": 287.1
  },
  "luminance": 0.02668
}

Semantic roles & 50–950 ramp

primary
#2F2264
secondary
#88984A
accent
#D94FBE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040D
muted
#7A797D

Preview Lab

Preview with #2F2264

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

Preview Lab → · Contrast checker → · Palette generator →

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