#2C114E#2C114E

#2C114E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.105 H 299.0°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2C114E
RGBrgb(44, 17, 78)
HSLhsl(267, 64%, 19%)
HSVhsv(267, 78%, 31%)
CMYKcmyk(43.6%, 78.2%, 0%, 69.4%)
CIE-LABlab(12.52, 27.99, -32.28)
CIE-LCHlch(12.52, 42.72, 310.93°)
OKLaboklab(25.83% 0.0511 -0.0922)
OKLCHoklch(25.83% 0.105 299)
XYZxyz(2.6140, 1.4864, 7.3554)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C114E #334E11
analogous
#11144E #2C114E #4A114E
triadic
#2C114E #4E2C11 #114E2C
tetradic
#2C114E #4E1114 #334E11 #114E4A
square
#2C114E #4E1114 #334E11 #114E4A
split-complementary
#2C114E #4E4A11 #144E11
monochromatic
#0E0519 #10061C #2C114E #481C80 #6527B2

Accessibility & contrast

On white

16.19
#2C114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C114E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C114E
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C114E#FFFFFF#000000##FFFFFF
##2C114E1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#24202E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c114e;
/* rgb */ color: rgb(44, 17, 78);
/* oklch */ color: oklch(25.8% 0.105 299.0);
Tailwind
colors: {
  custom: {
    50: '#695280',
    500: '#2c114e',
    950: '#000000',
  },
}
SCSS
$custom: #2c114e;
$custom-light: #695280;
$custom-dark: #000000;
JSON
{
  "hex": "#2c114e",
  "rgb": {
    "r": 44,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 266.557,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25831,
    "c": 0.10537,
    "h": 299
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#2C114E
secondary
#628733
accent
#E7419D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2C114E

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

Preview Lab → · Contrast checker → · Palette generator →

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