#2C2479#2C2479

#2C2479 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.138 H 279.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#2C2479
RGBrgb(44, 36, 121)
HSLhsl(246, 54%, 31%)
HSVhsv(246, 70%, 47%)
CMYKcmyk(63.6%, 70.2%, 0%, 52.5%)
CIE-LABlab(20.74, 30.47, -47.29)
CIE-LCHlch(20.74, 56.25, 302.79°)
OKLaboklab(32.96% 0.0237 -0.1363)
OKLCHoklch(32.96% 0.138 279.9)
XYZxyz(5.1197, 3.1773, 18.4289)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2479 #717924
analogous
#244679 #2C2479 #562479
triadic
#2C2479 #792C24 #24792C
tetradic
#2C2479 #792446 #717924 #247956
square
#2C2479 #792446 #717924 #247956
split-complementary
#2C2479 #795624 #467924
monochromatic
#0A081B #1B164A #2C2479 #3D32A8 #594DCA

Accessibility & contrast

On white

12.84
#2C2479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C2479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2479
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2479#FFFFFF#000000##FFFFFF
##2C24791.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c2479;
/* rgb */ color: rgb(44, 36, 121);
/* oklch */ color: oklch(33.0% 0.138 279.9);
Tailwind
colors: {
  custom: {
    50: '#6f5fa1',
    500: '#2c2479',
    950: '#000000',
  },
}
SCSS
$custom: #2c2479;
$custom-light: #6f5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2479",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 245.647,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32964,
    "c": 0.1383,
    "h": 279.9
  },
  "luminance": 0.03178
}

Semantic roles & 50–950 ramp

primary
#2C2479
secondary
#A3AC4D
accent
#DE4AD0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C2479

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

Preview Lab → · Contrast checker → · Palette generator →

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