#2C2278#2C2278

#2C2278 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.139 H 280.6°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#2C2278
RGBrgb(44, 34, 120)
HSLhsl(247, 56%, 30%)
HSVhsv(247, 72%, 47%)
CMYKcmyk(63.3%, 71.7%, 0%, 52.9%)
CIE-LABlab(20.18, 31.38, -47.56)
CIE-LCHlch(20.18, 56.98, 303.42°)
OKLaboklab(32.53% 0.0256 -0.1371)
OKLCHoklch(32.53% 0.139 280.6)
XYZxyz(4.9998, 3.0352, 18.0880)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2278 #6E7822
analogous
#224378 #2C2278 #572278
triadic
#2C2278 #782C22 #22782C
tetradic
#2C2278 #782243 #6E7822 #227857
square
#2C2278 #782243 #6E7822 #227857
split-complementary
#2C2278 #785722 #437822
monochromatic
#090719 #1B1448 #2C2278 #3D30A8 #5849CB

Accessibility & contrast

On white

13.07
#2C2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2278
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2278#FFFFFF#000000##FFFFFF
##2C22781.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c2278;
/* rgb */ color: rgb(44, 34, 120);
/* oklch */ color: oklch(32.5% 0.139 280.6);
Tailwind
colors: {
  custom: {
    50: '#6f5ea0',
    500: '#2c2278',
    950: '#000000',
  },
}
SCSS
$custom: #2c2278;
$custom-light: #6f5ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2278",
  "rgb": {
    "r": 44,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 246.977,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32535,
    "c": 0.13942,
    "h": 280.6
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#2C2278
secondary
#A0AB4B
accent
#DF49CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2C2278

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

Preview Lab → · Contrast checker → · Palette generator →

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