#2C1948#2C1948

#2C1948 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.085 H 299.2°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2C1948
RGBrgb(44, 25, 72)
HSLhsl(264, 48%, 19%)
HSVhsv(264, 65%, 28%)
CMYKcmyk(38.9%, 65.3%, 0%, 71.8%)
CIE-LABlab(13.82, 21.27, -26.04)
CIE-LCHlch(13.82, 33.62, 309.24°)
OKLaboklab(26.61% 0.0413 -0.0738)
OKLCHoklch(26.61% 0.085 299.2)
XYZxyz(2.5557, 1.6986, 6.3228)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1948 #354819
analogous
#191E48 #2C1948 #441948
triadic
#2C1948 #482C19 #19482C
tetradic
#2C1948 #48191E #354819 #194844
square
#2C1948 #48191E #354819 #194844
split-complementary
#2C1948 #484419 #1E4819
monochromatic
#0E0817 #10091B #2C1948 #482975 #6439A3

Accessibility & contrast

On white

15.67
#2C1948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C1948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1948
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1948#FFFFFF#000000##FFFFFF
##2C19481.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03234A
Deuteranopia (green-blind)
#092347
Tritanopia (blue-blind)
#26232D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c1948;
/* rgb */ color: rgb(44, 25, 72);
/* oklch */ color: oklch(26.6% 0.085 299.2);
Tailwind
colors: {
  custom: {
    50: '#67567b',
    500: '#2c1948',
    950: '#000000',
  },
}
SCSS
$custom: #2c1948;
$custom-light: #67567b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1948",
  "rgb": {
    "r": 44,
    "g": 25,
    "b": 72
  },
  "hsl": {
    "h": 264.255,
    "s": 48.454,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26608,
    "c": 0.08461,
    "h": 299.2
  },
  "luminance": 0.01699
}

Semantic roles & 50–950 ramp

primary
#2C1948
secondary
#657E3E
accent
#D850A1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2C1948

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

Preview Lab → · Contrast checker → · Palette generator →

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