#2C1674#2C1674

#2C1674 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.148 H 284.1°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#2C1674
RGBrgb(44, 22, 116)
HSLhsl(254, 68%, 27%)
HSVhsv(254, 81%, 45%)
CMYKcmyk(62.1%, 81%, 0%, 54.5%)
CIE-LABlab(17.32, 36.95, -49.70)
CIE-LCHlch(17.32, 61.93, 306.63°)
OKLaboklab(30.38% 0.0359 -0.1432)
OKLCHoklch(30.38% 0.148 284.1)
XYZxyz(4.4770, 2.3700, 16.7411)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1674 #5E7416
analogous
#162F74 #2C1674 #5B1674
triadic
#2C1674 #742C16 #16742C
tetradic
#2C1674 #74162F #5E7416 #16745B
square
#2C1674 #74162F #5E7416 #16745B
split-complementary
#2C1674 #745B16 #2F7416
monochromatic
#0A051A #180C41 #2C1674 #4020A7 #552DD7

Accessibility & contrast

On white

14.25
#2C1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2C1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1674
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1674#FFFFFF#000000##FFFFFF
##2C16741.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1674;
/* rgb */ color: rgb(44, 22, 116);
/* oklch */ color: oklch(30.4% 0.148 284.1);
Tailwind
colors: {
  custom: {
    50: '#6f579d',
    500: '#2c1674',
    950: '#000000',
  },
}
SCSS
$custom: #2c1674;
$custom-light: #6f579d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1674",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 254.043,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30382,
    "c": 0.14766,
    "h": 284.1
  },
  "luminance": 0.0237
}

Semantic roles & 50–950 ramp

primary
#2C1674
secondary
#90AA3C
accent
#EB3DC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1674

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

Preview Lab → · Contrast checker → · Palette generator →

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