#2C123C#2C123C

#2C123C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.080 H 310.3°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#2C123C
RGBrgb(44, 18, 60)
HSLhsl(277, 54%, 15%)
HSVhsv(277, 70%, 24%)
CMYKcmyk(26.7%, 70%, 0%, 76.5%)
CIE-LABlab(11.24, 22.24, -21.75)
CIE-LCHlch(11.24, 31.11, 315.64°)
OKLaboklab(24.43% 0.052 -0.0612)
OKLCHoklch(24.43% 0.08 310.3)
XYZxyz(2.0705, 1.2944, 4.4149)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C123C #223C12
analogous
#17123C #2C123C #3C1237
triadic
#2C123C #3C2C12 #123C2C
tetradic
#2C123C #3C1712 #223C12 #12373C
square
#2C123C #3C1712 #223C12 #12373C
split-complementary
#2C123C #373C12 #123C17
monochromatic
#110718 #110718 #2C123C #4F206B #712E9A

Accessibility & contrast

On white

16.68
#2C123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2C123C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C123C
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C123C#FFFFFF#000000##FFFFFF
##2C123C1.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031D3D
Deuteranopia (green-blind)
#0D1E3B
Tritanopia (blue-blind)
#2A1A24
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2c123c;
/* rgb */ color: rgb(44, 18, 60);
/* oklch */ color: oklch(24.4% 0.080 310.3);
Tailwind
colors: {
  custom: {
    50: '#675172',
    500: '#2c123c',
    950: '#000000',
  },
}
SCSS
$custom: #2c123c;
$custom-light: #675172;
$custom-dark: #000000;
JSON
{
  "hex": "#2c123c",
  "rgb": {
    "r": 44,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 277.143,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24434,
    "c": 0.08033,
    "h": 310.3
  },
  "luminance": 0.01294
}

Semantic roles & 50–950 ramp

primary
#2C123C
secondary
#4D7535
accent
#DD4B82
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060208
muted
#7A787B

Preview Lab

Preview with #2C123C

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

Preview Lab → · Contrast checker → · Palette generator →

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