#2C1875#2C1875

#2C1875 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.147 H 283.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#2C1875
RGBrgb(44, 24, 117)
HSLhsl(253, 66%, 28%)
HSVhsv(253, 79%, 46%)
CMYKcmyk(62.4%, 79.5%, 0%, 54.1%)
CIE-LABlab(17.80, 36.22, -49.56)
CIE-LCHlch(17.80, 61.38, 306.16°)
OKLaboklab(30.75% 0.0342 -0.1429)
OKLCHoklch(30.75% 0.147 283.4)
XYZxyz(4.5752, 2.4728, 17.0624)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1875 #617518
analogous
#183375 #2C1875 #5A1875
triadic
#2C1875 #752C18 #18752C
tetradic
#2C1875 #751833 #617518 #18755A
square
#2C1875 #751833 #617518 #18755A
split-complementary
#2C1875 #755A18 #337518
monochromatic
#0A0519 #190E42 #2C1875 #3F22A8 #5532D5

Accessibility & contrast

On white

14.05
#2C1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1875
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1875#FFFFFF#000000##FFFFFF
##2C18751.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2c1875;
/* rgb */ color: rgb(44, 24, 117);
/* oklch */ color: oklch(30.7% 0.147 283.4);
Tailwind
colors: {
  custom: {
    50: '#6f589e',
    500: '#2c1875',
    950: '#000000',
  },
}
SCSS
$custom: #2c1875;
$custom-light: #6f589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1875",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 252.903,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30747,
    "c": 0.14688,
    "h": 283.4
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#2C1875
secondary
#93AA3F
accent
#E93FC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C1875

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

Preview Lab → · Contrast checker → · Palette generator →

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