#322262#322262

#322262 is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.1% C 0.108 H 290.2°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#322262
RGBrgb(50, 34, 98)
HSLhsl(255, 48%, 26%)
HSVhsv(255, 65%, 38%)
CMYKcmyk(49%, 65.3%, 0%, 61.6%)
CIE-LABlab(18.82, 25.16, -35.48)
CIE-LCHlch(18.82, 43.50, 305.34°)
OKLaboklab(31.08% 0.0373 -0.1014)
OKLCHoklch(31.08% 0.108 290.2)
XYZxyz(4.0914, 2.7039, 11.8592)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#322262 #526222
analogous
#223262 #322262 #522262
triadic
#322262 #623222 #226232
tetradic
#322262 #622232 #526222 #226252
square
#322262 #622232 #526222 #226252
split-complementary
#322262 #625222 #326222
monochromatic
#0C0817 #1B1235 #322262 #49328F #6042BD

Accessibility & contrast

On white

13.63
#322262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#322262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #322262
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##322262#FFFFFF#000000##FFFFFF
##3222621.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#002C61
Tritanopia (blue-blind)
#23313E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #322262;
/* rgb */ color: rgb(50, 34, 98);
/* oklch */ color: oklch(31.1% 0.108 290.2);
Tailwind
colors: {
  custom: {
    50: '#6e5e8f',
    500: '#322262',
    950: '#000000',
  },
}
SCSS
$custom: #322262;
$custom-light: #6e5e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#322262",
  "rgb": {
    "r": 50,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 255,
    "s": 48.485,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3108,
    "c": 0.10803,
    "h": 290.2
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#322262
secondary
#83964A
accent
#D850B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #322262

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

Preview Lab → · Contrast checker → · Palette generator →

#322262 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva