#2C225D#2C225D

#2C225D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.0% C 0.101 H 286.4°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2C225D
RGBrgb(44, 34, 93)
HSLhsl(250, 46%, 25%)
HSVhsv(250, 63%, 36%)
CMYKcmyk(52.7%, 63.4%, 0%, 63.5%)
CIE-LABlab(17.78, 22.09, -33.88)
CIE-LCHlch(17.78, 40.45, 303.10°)
OKLaboklab(30.04% 0.0285 -0.0969)
OKLCHoklch(30.04% 0.101 286.4)
XYZxyz(3.5859, 2.4697, 10.6416)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C225D #535D22
analogous
#22365D #2C225D #49225D
triadic
#2C225D #5D2C22 #225D2C
tetradic
#2C225D #5D2236 #535D22 #225D49
square
#2C225D #5D2236 #535D22 #225D49
split-complementary
#2C225D #5D4922 #365D22
monochromatic
#0B0816 #171230 #2C225D #41328A #5643B7

Accessibility & contrast

On white

14.06
#2C225D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C225D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C225D
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C225D#FFFFFF#000000##FFFFFF
##2C225D1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#002A5C
Tritanopia (blue-blind)
#1B303B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c225d;
/* rgb */ color: rgb(44, 34, 93);
/* oklch */ color: oklch(30.0% 0.101 286.4);
Tailwind
colors: {
  custom: {
    50: '#6a5d8b',
    500: '#2c225d',
    950: '#000000',
  },
}
SCSS
$custom: #2c225d;
$custom-light: #6a5d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c225d",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 93
  },
  "hsl": {
    "h": 250.169,
    "s": 46.457,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30042,
    "c": 0.10101,
    "h": 286.4
  },
  "luminance": 0.0247
}

Semantic roles & 50–950 ramp

primary
#2C225D
secondary
#85914A
accent
#D652C0
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2C225D

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

Preview Lab → · Contrast checker → · Palette generator →

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