#2C2582#2C2582

#2C2582 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.149 H 278.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2C2582
RGBrgb(44, 37, 130)
HSLhsl(245, 56%, 33%)
HSVhsv(245, 72%, 51%)
CMYKcmyk(66.2%, 71.5%, 0%, 49%)
CIE-LABlab(21.84, 32.95, -51.20)
CIE-LCHlch(21.84, 60.89, 302.76°)
OKLaboklab(34.02% 0.0214 -0.1477)
OKLCHoklch(34.02% 0.149 278.3)
XYZxyz(5.7282, 3.4699, 21.4826)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2582 #7B8225
analogous
#254C82 #2C2582 #5A2582
triadic
#2C2582 #822C25 #25822C
tetradic
#2C2582 #82254C #7B8225 #25825A
square
#2C2582 #82254C #7B8225 #25825A
split-complementary
#2C2582 #825A25 #4C8225
monochromatic
#0C0A23 #1C1752 #2C2582 #3C33B2 #5D53CE

Accessibility & contrast

On white

12.40
#2C2582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C2582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2582
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2582#FFFFFF#000000##FFFFFF
##2C25821.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2582;
/* rgb */ color: rgb(44, 37, 130);
/* oklch */ color: oklch(34.0% 0.149 278.3);
Tailwind
colors: {
  custom: {
    50: '#7160a7',
    500: '#2c2582',
    950: '#000000',
  },
}
SCSS
$custom: #2c2582;
$custom-light: #7160a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2582",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 130
  },
  "hsl": {
    "h": 244.516,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34017,
    "c": 0.14927,
    "h": 278.3
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#2C2582
secondary
#ABB250
accent
#DF49D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2582

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

Preview Lab → · Contrast checker → · Palette generator →

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