#2C1057#2C1057

#2C1057 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.118 H 295.0°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#2C1057
RGBrgb(44, 16, 87)
HSLhsl(264, 69%, 20%)
HSVhsv(264, 82%, 34%)
CMYKcmyk(49.4%, 81.6%, 0%, 65.9%)
CIE-LABlab(13.19, 31.18, -37.32)
CIE-LCHlch(13.19, 48.64, 309.88°)
OKLaboklab(26.57% 0.0498 -0.107)
OKLCHoklch(26.57% 0.118 295)
XYZxyz(2.9438, 1.5941, 9.1676)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1057 #3B5710
analogous
#101757 #2C1057 #4F1057
triadic
#2C1057 #572C10 #10572C
tetradic
#2C1057 #571017 #3B5710 #10574F
square
#2C1057 #571017 #3B5710 #10574F
split-complementary
#2C1057 #574F10 #175710
monochromatic
#0D051A #120623 #2C1057 #461A8B #6023BE

Accessibility & contrast

On white

15.92
#2C1057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1057
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1057#FFFFFF#000000##FFFFFF
##2C10571.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#202333
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c1057;
/* rgb */ color: rgb(44, 16, 87);
/* oklch */ color: oklch(26.6% 0.118 295.0);
Tailwind
colors: {
  custom: {
    50: '#6a5187',
    500: '#2c1057',
    950: '#000000',
  },
}
SCSS
$custom: #2c1057;
$custom-light: #6a5187;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1057",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 263.662,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26573,
    "c": 0.11799,
    "h": 295
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#2C1057
secondary
#6B9032
accent
#EC3CA6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2C1057

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

Preview Lab → · Contrast checker → · Palette generator →

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