#2C2C79#2C2C79

#2C2C79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.128 H 277.3°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#2C2C79
RGBrgb(44, 44, 121)
HSLhsl(240, 47%, 32%)
HSVhsv(240, 64%, 47%)
CMYKcmyk(63.6%, 63.6%, 0%, 52.5%)
CIE-LABlab(22.71, 25.23, -44.06)
CIE-LCHlch(22.71, 50.77, 299.79°)
OKLaboklab(34.4% 0.0163 -0.1268)
OKLCHoklch(34.4% 0.128 277.3)
XYZxyz(5.3895, 3.7169, 18.5189)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C79 #79792C
analogous
#2C5379 #2C2C79 #532C79
triadic
#2C2C79 #792C2C #2C792C
tetradic
#2C2C79 #792C53 #79792C #2C7953
square
#2C2C79 #792C53 #79792C #2C7953
split-complementary
#2C2C79 #79532C #53792C
monochromatic
#0B0B1F #1C1C4C #2C2C79 #3C3CA6 #5C5CC4

Accessibility & contrast

On white

12.05
#2C2C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C2C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C79
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C79#FFFFFF#000000##FFFFFF
##2C2C791.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2c79;
/* rgb */ color: rgb(44, 44, 121);
/* oklch */ color: oklch(34.4% 0.128 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e65a0',
    500: '#2c2c79',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c79;
$custom-light: #6e65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c79",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 121
  },
  "hsl": {
    "h": 240,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34401,
    "c": 0.12782,
    "h": 277.3
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#2C2C79
secondary
#AAAA57
accent
#D651D6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2C2C79

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

Preview Lab → · Contrast checker → · Palette generator →

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