#2C2478#2C2478

#2C2478 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.137 H 280.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2C2478
RGBrgb(44, 36, 120)
HSLhsl(246, 54%, 31%)
HSVhsv(246, 70%, 47%)
CMYKcmyk(63.3%, 70%, 0%, 52.9%)
CIE-LABlab(20.65, 30.12, -46.80)
CIE-LCHlch(20.65, 55.66, 302.76°)
OKLaboklab(32.87% 0.0238 -0.1348)
OKLCHoklch(32.87% 0.137 280)
XYZxyz(5.0587, 3.1529, 18.1077)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2478 #707824
analogous
#244678 #2C2478 #562478
triadic
#2C2478 #782C24 #24782C
tetradic
#2C2478 #782446 #707824 #247856
square
#2C2478 #782446 #707824 #247856
split-complementary
#2C2478 #785624 #467824
monochromatic
#09081A #1B1649 #2C2478 #3D32A7 #594DCA

Accessibility & contrast

On white

12.88
#2C2478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C2478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2478
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2478#FFFFFF#000000##FFFFFF
##2C24781.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c2478;
/* rgb */ color: rgb(44, 36, 120);
/* oklch */ color: oklch(32.9% 0.137 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f5fa0',
    500: '#2c2478',
    950: '#000000',
  },
}
SCSS
$custom: #2c2478;
$custom-light: #6f5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2478",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 245.714,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32867,
    "c": 0.13693,
    "h": 280
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#2C2478
secondary
#A2AB4D
accent
#DD4BCF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2C2478

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

Preview Lab → · Contrast checker → · Palette generator →

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