#2C2D78#2C2D78

#2C2D78 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.125 H 277.0°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2C2D78
RGBrgb(44, 45, 120)
HSLhsl(239, 46%, 32%)
HSVhsv(239, 63%, 47%)
CMYKcmyk(63.3%, 62.5%, 0%, 52.9%)
CIE-LABlab(22.89, 24.19, -43.14)
CIE-LCHlch(22.89, 49.46, 299.28°)
OKLaboklab(34.5% 0.0153 -0.1241)
OKLCHoklch(34.5% 0.125 277)
XYZxyz(5.3662, 3.7679, 18.2102)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D78 #78772C
analogous
#2C5378 #2C2D78 #512C78
triadic
#2C2D78 #782C2D #2D782C
tetradic
#2C2D78 #782C53 #78772C #2C7851
square
#2C2D78 #782C53 #78772C #2C7851
split-complementary
#2C2D78 #78512C #53782C
monochromatic
#0B0B1E #1C1C4B #2C2D78 #3C3EA5 #5B5DC3

Accessibility & contrast

On white

11.98
#2C2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C2D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D78
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D78#FFFFFF#000000##FFFFFF
##2C2D781.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003376
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2d78;
/* rgb */ color: rgb(44, 45, 120);
/* oklch */ color: oklch(34.5% 0.125 277.0);
Tailwind
colors: {
  custom: {
    50: '#6e66a0',
    500: '#2c2d78',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d78;
$custom-light: #6e66a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d78",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 239.211,
    "s": 46.341,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.125,
    "h": 277
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#2C2D78
secondary
#A9A857
accent
#D452D6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050F
muted
#7B7A7E

Preview Lab

Preview with #2C2D78

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

Preview Lab → · Contrast checker → · Palette generator →

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