#2C1942#2C1942

#2C1942 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.076 H 302.9°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2C1942
RGBrgb(44, 25, 66)
HSLhsl(268, 45%, 18%)
HSVhsv(268, 62%, 26%)
CMYKcmyk(33.3%, 62.1%, 0%, 74.1%)
CIE-LABlab(13.38, 19.44, -22.57)
CIE-LCHlch(13.38, 29.79, 310.75°)
OKLaboklab(26.14% 0.0412 -0.0637)
OKLCHoklch(26.14% 0.076 302.9)
XYZxyz(2.3695, 1.6241, 5.3418)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1942 #2F4219
analogous
#191A42 #2C1942 #401942
triadic
#2C1942 #422C19 #19422C
tetradic
#2C1942 #42191A #2F4219 #194240
square
#2C1942 #42191A #2F4219 #194240
split-complementary
#2C1942 #424019 #1A4219
monochromatic
#0F0816 #0F0816 #2C1942 #4A2A6E #673B9B

Accessibility & contrast

On white

15.85
#2C1942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C1942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1942
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1942#FFFFFF#000000##FFFFFF
##2C19421.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2243
Deuteranopia (green-blind)
#102241
Tritanopia (blue-blind)
#28212A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1942;
/* rgb */ color: rgb(44, 25, 66);
/* oklch */ color: oklch(26.1% 0.076 302.9);
Tailwind
colors: {
  custom: {
    50: '#675676',
    500: '#2c1942',
    950: '#000000',
  },
}
SCSS
$custom: #2c1942;
$custom-light: #675676;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1942",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 66
  },
  "hsl": {
    "h": 267.805,
    "s": 45.055,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26141,
    "c": 0.07582,
    "h": 302.9
  },
  "luminance": 0.01624
}

Semantic roles & 50–950 ramp

primary
#2C1942
secondary
#5E783F
accent
#D55399
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2C1942

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

Preview Lab → · Contrast checker → · Palette generator →

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