#2C2579#2C2579

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

Color values

HEX#2C2579
RGBrgb(44, 37, 121)
HSLhsl(245, 53%, 31%)
HSVhsv(245, 69%, 47%)
CMYKcmyk(63.6%, 69.4%, 0%, 52.5%)
CIE-LABlab(20.98, 29.83, -46.90)
CIE-LCHlch(20.98, 55.58, 302.46°)
OKLaboklab(33.13% 0.0228 -0.1351)
OKLCHoklch(33.13% 0.137 279.6)
XYZxyz(5.1504, 3.2387, 18.4392)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2579 #727925
analogous
#254879 #2C2579 #562579
triadic
#2C2579 #792C25 #25792C
tetradic
#2C2579 #792548 #727925 #257956
square
#2C2579 #792548 #727925 #257956
split-complementary
#2C2579 #795625 #487925
monochromatic
#0A081B #1B174A #2C2579 #3D33A8 #594FC9

Accessibility & contrast

On white

12.74
#2C2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2C2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2579
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2579#FFFFFF#000000##FFFFFF
##2C25791.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c2579;
/* rgb */ color: rgb(44, 37, 121);
/* oklch */ color: oklch(33.1% 0.137 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f60a1',
    500: '#2c2579',
    950: '#000000',
  },
}
SCSS
$custom: #2c2579;
$custom-light: #6f60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2579",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 245,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33134,
    "c": 0.13704,
    "h": 279.6
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#2C2579
secondary
#A4AB4E
accent
#DD4BD0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C2579

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

Preview Lab → · Contrast checker → · Palette generator →

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