#2C2876#2C2876

#2C2876 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.129 H 279.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#2C2876
RGBrgb(44, 40, 118)
HSLhsl(243, 49%, 31%)
HSVhsv(243, 66%, 46%)
CMYKcmyk(62.7%, 66.1%, 0%, 53.7%)
CIE-LABlab(21.43, 26.82, -44.23)
CIE-LCHlch(21.43, 51.73, 301.23°)
OKLaboklab(33.38% 0.0204 -0.1273)
OKLCHoklch(33.38% 0.129 279.1)
XYZxyz(5.0665, 3.3607, 17.5177)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2876 #727628
analogous
#284B76 #2C2876 #532876
triadic
#2C2876 #762C28 #28762C
tetradic
#2C2876 #76284B #727628 #287653
square
#2C2876 #76284B #727628 #287653
split-complementary
#2C2876 #765328 #4B7628
monochromatic
#0A091B #1B1948 #2C2876 #3D37A4 #5954C5

Accessibility & contrast

On white

12.56
#2C2876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C2876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2876
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2876#FFFFFF#000000##FFFFFF
##2C28761.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c2876;
/* rgb */ color: rgb(44, 40, 118);
/* oklch */ color: oklch(33.4% 0.129 279.1);
Tailwind
colors: {
  custom: {
    50: '#6e629e',
    500: '#2c2876',
    950: '#000000',
  },
}
SCSS
$custom: #2c2876;
$custom-light: #6e629e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2876",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 243.077,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33383,
    "c": 0.12892,
    "h": 279.1
  },
  "luminance": 0.03361
}

Semantic roles & 50–950 ramp

primary
#2C2876
secondary
#A4A852
accent
#D94FD2
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2C2876

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

Preview Lab → · Contrast checker → · Palette generator →

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