#2C1868#2C1868

#2C1868 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.130 H 286.8°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2C1868
RGBrgb(44, 24, 104)
HSLhsl(255, 63%, 25%)
HSVhsv(255, 77%, 41%)
CMYKcmyk(57.7%, 76.9%, 0%, 59.2%)
CIE-LABlab(16.44, 32.07, -43.33)
CIE-LCHlch(16.44, 53.90, 306.51°)
OKLaboklab(29.39% 0.0377 -0.1246)
OKLCHoklch(29.39% 0.13 286.8)
XYZxyz(3.8633, 2.1880, 13.3128)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1868 #546818
analogous
#182C68 #2C1868 #541868
triadic
#2C1868 #682C18 #18682C
tetradic
#2C1868 #68182C #546818 #186854
square
#2C1868 #68182C #546818 #186854
split-complementary
#2C1868 #685418 #2C6818
monochromatic
#0B0619 #170D36 #2C1868 #41239A #562FCB

Accessibility & contrast

On white

14.61
#2C1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2C1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1868
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1868#FFFFFF#000000##FFFFFF
##2C18681.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#122E3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2c1868;
/* rgb */ color: rgb(44, 24, 104);
/* oklch */ color: oklch(29.4% 0.130 286.8);
Tailwind
colors: {
  custom: {
    50: '#6d5794',
    500: '#2c1868',
    950: '#000000',
  },
}
SCSS
$custom: #2c1868;
$custom-light: #6d5794;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1868",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 255,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29386,
    "c": 0.1302,
    "h": 286.8
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#2C1868
secondary
#869E3E
accent
#E642BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2C1868

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

Preview Lab → · Contrast checker → · Palette generator →

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