#2C2877#2C2877

#2C2877 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.130 H 278.9°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2C2877
RGBrgb(44, 40, 119)
HSLhsl(243, 50%, 31%)
HSVhsv(243, 66%, 47%)
CMYKcmyk(63%, 66.4%, 0%, 53.3%)
CIE-LABlab(21.52, 27.17, -44.73)
CIE-LCHlch(21.52, 52.34, 301.28°)
OKLaboklab(33.48% 0.0203 -0.1288)
OKLCHoklch(33.48% 0.13 278.9)
XYZxyz(5.1262, 3.3846, 17.8323)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2877 #737728
analogous
#284B77 #2C2877 #532877
triadic
#2C2877 #772C28 #28772C
tetradic
#2C2877 #77284B #737728 #287753
square
#2C2877 #77284B #737728 #287753
split-complementary
#2C2877 #775328 #4B7728
monochromatic
#0A091B #1B1949 #2C2877 #3D37A5 #5A54C5

Accessibility & contrast

On white

12.52
#2C2877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2C2877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2877
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2877#FFFFFF#000000##FFFFFF
##2C28771.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c2877;
/* rgb */ color: rgb(44, 40, 119);
/* oklch */ color: oklch(33.5% 0.130 278.9);
Tailwind
colors: {
  custom: {
    50: '#6e629f',
    500: '#2c2877',
    950: '#000000',
  },
}
SCSS
$custom: #2c2877;
$custom-light: #6e629f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2877",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 243.038,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33475,
    "c": 0.13034,
    "h": 278.9
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2877

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

Preview Lab → · Contrast checker → · Palette generator →

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