#2C2149#2C2149

#2C2149 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.3% C 0.072 H 294.0°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2C2149
RGBrgb(44, 33, 73)
HSLhsl(257, 38%, 21%)
HSVhsv(257, 55%, 29%)
CMYKcmyk(39.7%, 54.8%, 0%, 71.4%)
CIE-LABlab(16.02, 16.11, -23.20)
CIE-LCHlch(16.02, 28.24, 304.77°)
OKLaboklab(28.26% 0.0292 -0.0655)
OKLCHoklch(28.26% 0.072 294)
XYZxyz(2.7849, 2.1042, 6.5615)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2149 #3E4921
analogous
#212A49 #2C2149 #402149
triadic
#2C2149 #492C21 #21492C
tetradic
#2C2149 #49212A #3E4921 #214940
square
#2C2149 #49212A #3E4921 #214940
split-complementary
#2C2149 #494021 #2A4921
monochromatic
#0D0A15 #130E1F #2C2149 #453473 #5F479D

Accessibility & contrast

On white

14.78
#2C2149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2C2149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2149
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2149#FFFFFF#000000##FFFFFF
##2C21491.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12284A
Deuteranopia (green-blind)
#142748
Tritanopia (blue-blind)
#252931
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c2149;
/* rgb */ color: rgb(44, 33, 73);
/* oklch */ color: oklch(28.3% 0.072 294.0);
Tailwind
colors: {
  custom: {
    50: '#675c7c',
    500: '#2c2149',
    950: '#000000',
  },
}
SCSS
$custom: #2c2149;
$custom-light: #675c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2149",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 73
  },
  "hsl": {
    "h": 256.5,
    "s": 37.736,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28264,
    "c": 0.07171,
    "h": 294
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#2C2149
secondary
#6F7D49
accent
#CE5AAE
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2C2149

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

Preview Lab → · Contrast checker → · Palette generator →

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