#2C2C77#2C2C77

#2C2C77 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.125 H 277.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2C2C77
RGBrgb(44, 44, 119)
HSLhsl(240, 46%, 32%)
HSVhsv(240, 63%, 47%)
CMYKcmyk(63%, 63%, 0%, 53.3%)
CIE-LABlab(22.54, 24.50, -43.07)
CIE-LCHlch(22.54, 49.55, 299.64°)
OKLaboklab(34.22% 0.0164 -0.1238)
OKLCHoklch(34.22% 0.125 277.5)
XYZxyz(5.2681, 3.6683, 17.8796)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C77 #77772C
analogous
#2C5277 #2C2C77 #522C77
triadic
#2C2C77 #772C2C #2C772C
tetradic
#2C2C77 #772C52 #77772C #2C7752
square
#2C2C77 #772C52 #77772C #2C7752
split-complementary
#2C2C77 #77522C #52772C
monochromatic
#0B0B1E #1B1B4A #2C2C77 #3D3DA4 #5B5BC2

Accessibility & contrast

On white

12.11
#2C2C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C2C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C77
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C77#FFFFFF#000000##FFFFFF
##2C2C771.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#003375
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2c77;
/* rgb */ color: rgb(44, 44, 119);
/* oklch */ color: oklch(34.2% 0.125 277.5);
Tailwind
colors: {
  custom: {
    50: '#6e659f',
    500: '#2c2c77',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c77;
$custom-light: #6e659f;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c77",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 240,
    "s": 46.012,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34223,
    "c": 0.12492,
    "h": 277.5
  },
  "luminance": 0.03669
}

Semantic roles & 50–950 ramp

primary
#2C2C77
secondary
#A8A856
accent
#D652D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #2C2C77

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

Preview Lab → · Contrast checker → · Palette generator →

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