#2C1865#2C1865

#2C1865 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.126 H 287.7°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2C1865
RGBrgb(44, 24, 101)
HSLhsl(256, 62%, 25%)
HSVhsv(256, 76%, 40%)
CMYKcmyk(56.4%, 76.2%, 0%, 60.4%)
CIE-LABlab(16.15, 31.10, -41.84)
CIE-LCHlch(16.15, 52.14, 306.63°)
OKLaboklab(29.08% 0.0384 -0.1203)
OKLCHoklch(29.08% 0.126 287.7)
XYZxyz(3.7136, 2.1281, 12.5245)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1865 #516518
analogous
#182B65 #2C1865 #531865
triadic
#2C1865 #652C18 #18652C
tetradic
#2C1865 #65182B #516518 #186553
square
#2C1865 #65182B #516518 #186553
split-complementary
#2C1865 #655318 #2B6518
monochromatic
#0B0619 #160C34 #2C1865 #422496 #5730C8

Accessibility & contrast

On white

14.73
#2C1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2C1865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1865
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1865#FFFFFF#000000##FFFFFF
##2C18651.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#152D3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2c1865;
/* rgb */ color: rgb(44, 24, 101);
/* oklch */ color: oklch(29.1% 0.126 287.7);
Tailwind
colors: {
  custom: {
    50: '#6c5792',
    500: '#2c1865',
    950: '#000000',
  },
}
SCSS
$custom: #2c1865;
$custom-light: #6c5792;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1865",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 255.584,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29083,
    "c": 0.12627,
    "h": 287.7
  },
  "luminance": 0.02128
}

Semantic roles & 50–950 ramp

primary
#2C1865
secondary
#839B3E
accent
#E543BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2C1865

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

Preview Lab → · Contrast checker → · Palette generator →

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