#2C2A77#2C2A77

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

Color values

HEX#2C2A77
RGBrgb(44, 42, 119)
HSLhsl(242, 48%, 32%)
HSVhsv(242, 65%, 47%)
CMYKcmyk(63%, 64.7%, 0%, 53.3%)
CIE-LABlab(22.03, 25.85, -43.91)
CIE-LCHlch(22.03, 50.95, 300.48°)
OKLaboklab(33.84% 0.0183 -0.1263)
OKLCHoklch(33.84% 0.128 278.3)
XYZxyz(5.1954, 3.5229, 17.8554)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A77 #75772A
analogous
#2A4F77 #2C2A77 #532A77
triadic
#2C2A77 #772C2A #2A772C
tetradic
#2C2A77 #772A4F #75772A #2A7753
square
#2C2A77 #772A4F #75772A #2A7753
split-complementary
#2C2A77 #77532A #4F772A
monochromatic
#0B0A1D #1B1A4A #2C2A77 #3D3AA4 #5A58C4

Accessibility & contrast

On white

12.32
#2C2A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C2A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A77
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A77#FFFFFF#000000##FFFFFF
##2C2A771.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c2a77;
/* rgb */ color: rgb(44, 42, 119);
/* oklch */ color: oklch(33.8% 0.128 278.3);
Tailwind
colors: {
  custom: {
    50: '#6e649f',
    500: '#2c2a77',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a77;
$custom-light: #6e649f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a77",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 119
  },
  "hsl": {
    "h": 241.558,
    "s": 47.826,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.12765,
    "h": 278.3
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#2C2A77
secondary
#A7A954
accent
#D750D4
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2C2A77

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

Preview Lab → · Contrast checker → · Palette generator →

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