#2C105E#2C105E

#2C105E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.127 H 292.1°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2C105E
RGBrgb(44, 16, 94)
HSLhsl(262, 71%, 22%)
HSVhsv(262, 83%, 37%)
CMYKcmyk(53.2%, 83%, 0%, 63.1%)
CIE-LABlab(13.91, 33.27, -40.86)
CIE-LCHlch(13.91, 52.69, 309.15°)
OKLaboklab(27.29% 0.0476 -0.1173)
OKLCHoklch(27.29% 0.127 292.1)
XYZxyz(3.2438, 1.7141, 10.7474)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C105E #425E10
analogous
#101B5E #2C105E #53105E
triadic
#2C105E #5E2C10 #105E2C
tetradic
#2C105E #5E101B #425E10 #105E53
square
#2C105E #5E101B #425E10 #105E53
split-complementary
#2C105E #5E5310 #1B5E10
monochromatic
#0C041A #14072A #2C105E #441992 #5D22C7

Accessibility & contrast

On white

15.64
#2C105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2C105E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C105E
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C105E#FFFFFF#000000##FFFFFF
##2C105E1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#1B2637
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c105e;
/* rgb */ color: rgb(44, 16, 94);
/* oklch */ color: oklch(27.3% 0.127 292.1);
Tailwind
colors: {
  custom: {
    50: '#6c528c',
    500: '#2c105e',
    950: '#000000',
  },
}
SCSS
$custom: #2c105e;
$custom-light: #6c528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2c105e",
  "rgb": {
    "r": 44,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 261.538,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27292,
    "c": 0.12663,
    "h": 292.1
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#2C105E
secondary
#739733
accent
#EE3AAD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2C105E

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

Preview Lab → · Contrast checker → · Palette generator →

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