#2C2066#2C2066

#2C2066 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.117 H 284.9°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#2C2066
RGBrgb(44, 32, 102)
HSLhsl(250, 52%, 26%)
HSVhsv(250, 69%, 40%)
CMYKcmyk(56.9%, 68.6%, 0%, 60%)
CIE-LABlab(18.04, 26.49, -39.40)
CIE-LCHlch(18.04, 47.48, 303.92°)
OKLaboklab(30.47% 0.0301 -0.1131)
OKLCHoklch(30.47% 0.117 284.9)
XYZxyz(3.9528, 2.5276, 12.8474)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2066 #5A6620
analogous
#203766 #2C2066 #4F2066
triadic
#2C2066 #662C20 #20662C
tetradic
#2C2066 #662037 #5A6620 #20664F
square
#2C2066 #662037 #5A6620 #20664F
split-complementary
#2C2066 #664F20 #376620
monochromatic
#0A0717 #181137 #2C2066 #402F95 #553EC2

Accessibility & contrast

On white

13.95
#2C2066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2C2066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2066
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2066#FFFFFF#000000##FFFFFF
##2C20661.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#002A65
Tritanopia (blue-blind)
#14313F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c2066;
/* rgb */ color: rgb(44, 32, 102);
/* oklch */ color: oklch(30.5% 0.117 284.9);
Tailwind
colors: {
  custom: {
    50: '#6c5c92',
    500: '#2c2066',
    950: '#000000',
  },
}
SCSS
$custom: #2c2066;
$custom-light: #6c5c92;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2066",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 102
  },
  "hsl": {
    "h": 250.286,
    "s": 52.239,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30473,
    "c": 0.11708,
    "h": 284.9
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#2C2066
secondary
#8C9A48
accent
#DC4CC3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2C2066

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

Preview Lab → · Contrast checker → · Palette generator →

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