#2C1874#2C1874

#2C1874 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.146 H 283.7°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#2C1874
RGBrgb(44, 24, 116)
HSLhsl(253, 66%, 27%)
HSVhsv(253, 79%, 45%)
CMYKcmyk(62.1%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.69, 35.90, -49.09)
CIE-LCHlch(17.69, 60.82, 306.18°)
OKLaboklab(30.64% 0.0344 -0.1415)
OKLCHoklch(30.64% 0.146 283.7)
XYZxyz(4.5168, 2.4494, 16.7544)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1874 #607418
analogous
#183274 #2C1874 #5A1874
triadic
#2C1874 #742C18 #18742C
tetradic
#2C1874 #741832 #607418 #18745A
square
#2C1874 #741832 #607418 #18745A
split-complementary
#2C1874 #745A18 #327418
monochromatic
#0A0519 #190E41 #2C1874 #3F22A7 #5532D5

Accessibility & contrast

On white

14.09
#2C1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2C1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1874
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1874#FFFFFF#000000##FFFFFF
##2C18741.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2c1874;
/* rgb */ color: rgb(44, 24, 116);
/* oklch */ color: oklch(30.6% 0.146 283.7);
Tailwind
colors: {
  custom: {
    50: '#6f589d',
    500: '#2c1874',
    950: '#000000',
  },
}
SCSS
$custom: #2c1874;
$custom-light: #6f589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1874",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 253.043,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3064,
    "c": 0.14562,
    "h": 283.7
  },
  "luminance": 0.0245
}

Semantic roles & 50–950 ramp

primary
#2C1874
secondary
#92A93F
accent
#E93FC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1874

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

Preview Lab → · Contrast checker → · Palette generator →

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