#2C0D4F#2C0D4F

#2C0D4F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.112 H 299.5°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2C0D4F
RGBrgb(44, 13, 79)
HSLhsl(268, 72%, 18%)
HSVhsv(268, 84%, 31%)
CMYKcmyk(44.3%, 83.5%, 0%, 69%)
CIE-LABlab(11.88, 30.37, -34.02)
CIE-LCHlch(11.88, 45.61, 311.76°)
OKLaboklab(25.41% 0.0551 -0.0972)
OKLCHoklch(25.41% 0.112 299.5)
XYZxyz(2.5936, 1.3878, 7.5269)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C0D4F #304F0D
analogous
#0D0F4F #2C0D4F #4D0D4F
triadic
#2C0D4F #4F2C0D #0D4F2C
tetradic
#2C0D4F #4F0D0F #304F0D #0D4F4D
square
#2C0D4F #4F0D0F #304F0D #0D4F4D
split-complementary
#2C0D4F #4F4D0D #0F4F0D
monochromatic
#0F041A #0F041A #2C0D4F #491684 #671EB8

Accessibility & contrast

On white

16.44
#2C0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2C0D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C0D4F
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C0D4F#FFFFFF#000000##FFFFFF
##2C0D4F1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#241E2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2c0d4f;
/* rgb */ color: rgb(44, 13, 79);
/* oklch */ color: oklch(25.4% 0.112 299.5);
Tailwind
colors: {
  custom: {
    50: '#694f81',
    500: '#2c0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #2c0d4f;
$custom-light: #694f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2c0d4f",
  "rgb": {
    "r": 44,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 268.182,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25406,
    "c": 0.11177,
    "h": 299.5
  },
  "luminance": 0.01388
}

Semantic roles & 50–950 ramp

primary
#2C0D4F
secondary
#5F8A2E
accent
#EE3999
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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