#2C1658#2C1658

#2C1658 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.112 H 292.9°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#2C1658
RGBrgb(44, 22, 88)
HSLhsl(260, 60%, 22%)
HSVhsv(260, 75%, 35%)
CMYKcmyk(50%, 75%, 0%, 65.5%)
CIE-LABlab(14.48, 28.15, -35.90)
CIE-LCHlch(14.48, 45.62, 308.10°)
OKLaboklab(27.51% 0.0433 -0.1028)
OKLCHoklch(27.51% 0.112 292.9)
XYZxyz(3.0866, 1.8138, 9.4181)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1658 #425816
analogous
#162158 #2C1658 #4D1658
triadic
#2C1658 #582C16 #16582C
tetradic
#2C1658 #581621 #425816 #16584D
square
#2C1658 #581621 #425816 #16584D
split-complementary
#2C1658 #584D16 #215816
monochromatic
#0C0618 #140A27 #2C1658 #442289 #5D2EBA

Accessibility & contrast

On white

15.41
#2C1658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2C1658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1658
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1658#FFFFFF#000000##FFFFFF
##2C16581.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#1F2735
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2c1658;
/* rgb */ color: rgb(44, 22, 88);
/* oklch */ color: oklch(27.5% 0.112 292.9);
Tailwind
colors: {
  custom: {
    50: '#6a5588',
    500: '#2c1658',
    950: '#000000',
  },
}
SCSS
$custom: #2c1658;
$custom-light: #6a5588;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1658",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 260,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27512,
    "c": 0.11159,
    "h": 292.9
  },
  "luminance": 0.01814
}

Semantic roles & 50–950 ramp

primary
#2C1658
secondary
#738F3B
accent
#E345AE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2C1658

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

Preview Lab → · Contrast checker → · Palette generator →

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