#2C2A78#2C2A78

#2C2A78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.129 H 278.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#2C2A78
RGBrgb(44, 42, 120)
HSLhsl(242, 48%, 32%)
HSVhsv(242, 65%, 47%)
CMYKcmyk(63.3%, 65%, 0%, 52.9%)
CIE-LABlab(22.11, 26.20, -44.40)
CIE-LCHlch(22.11, 51.56, 300.55°)
OKLaboklab(33.93% 0.0183 -0.1278)
OKLCHoklch(33.93% 0.129 278.1)
XYZxyz(5.2557, 3.5471, 18.1734)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A78 #76782A
analogous
#2A4F78 #2C2A78 #532A78
triadic
#2C2A78 #782C2A #2A782C
tetradic
#2C2A78 #782A4F #76782A #2A7853
square
#2C2A78 #782A4F #76782A #2A7853
split-complementary
#2C2A78 #78532A #4F782A
monochromatic
#0B0A1D #1B1A4B #2C2A78 #3D3AA5 #5B58C5

Accessibility & contrast

On white

12.29
#2C2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A78
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A78#FFFFFF#000000##FFFFFF
##2C2A781.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c2a78;
/* rgb */ color: rgb(44, 42, 120);
/* oklch */ color: oklch(33.9% 0.129 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e64a0',
    500: '#2c2a78',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a78;
$custom-light: #6e64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a78",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 241.538,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33934,
    "c": 0.12909,
    "h": 278.1
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#2C2A78
secondary
#A7AA54
accent
#D850D4
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050F
muted
#7B797E

Preview Lab

Preview with #2C2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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