#2C1749#2C1749

#2C1749 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.089 H 299.6°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#2C1749
RGBrgb(44, 23, 73)
HSLhsl(265, 52%, 19%)
HSVhsv(265, 68%, 29%)
CMYKcmyk(39.7%, 68.5%, 0%, 71.4%)
CIE-LABlab(13.41, 22.87, -27.39)
CIE-LCHlch(13.41, 35.69, 309.87°)
OKLaboklab(26.33% 0.0441 -0.0778)
OKLCHoklch(26.33% 0.089 299.6)
XYZxyz(2.5474, 1.6293, 6.4823)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1749 #344917
analogous
#171B49 #2C1749 #451749
triadic
#2C1749 #492C17 #17492C
tetradic
#2C1749 #49171B #344917 #174945
square
#2C1749 #49171B #344917 #174945
split-complementary
#2C1749 #494517 #1B4917
monochromatic
#0E0717 #10081A #2C1749 #482678 #6434A6

Accessibility & contrast

On white

15.84
#2C1749 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2C1749 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1749
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1749#FFFFFF#000000##FFFFFF
##2C17491.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#052248
Tritanopia (blue-blind)
#26222D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1749;
/* rgb */ color: rgb(44, 23, 73);
/* oklch */ color: oklch(26.3% 0.089 299.6);
Tailwind
colors: {
  custom: {
    50: '#68557c',
    500: '#2c1749',
    950: '#000000',
  },
}
SCSS
$custom: #2c1749;
$custom-light: #68557c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1749",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 73
  },
  "hsl": {
    "h": 265.2,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26333,
    "c": 0.08946,
    "h": 299.6
  },
  "luminance": 0.01629
}

Semantic roles & 50–950 ramp

primary
#2C1749
secondary
#63803C
accent
#DC4C9F
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2C1749

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

Preview Lab → · Contrast checker → · Palette generator →

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