#2C278A#2C278A

#2C278A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.158 H 276.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2C278A
RGBrgb(44, 39, 138)
HSLhsl(243, 56%, 35%)
HSVhsv(243, 72%, 54%)
CMYKcmyk(68.1%, 71.7%, 0%, 45.9%)
CIE-LABlab(23.07, 34.48, -54.19)
CIE-LCHlch(23.07, 64.23, 302.47°)
OKLaboklab(35.14% 0.0186 -0.1565)
OKLCHoklch(35.14% 0.158 276.8)
XYZxyz(6.3502, 3.8209, 24.4427)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C278A #858A27
analogous
#27548A #2C278A #5D278A
triadic
#2C278A #8A2C27 #278A2C
tetradic
#2C278A #8A2754 #858A27 #278A5D
square
#2C278A #8A2754 #858A27 #278A5D
split-complementary
#2C278A #8A5D27 #548A27
monochromatic
#0E0C2B #1D1A5A #2C278A #3B34BA #615BD1

Accessibility & contrast

On white

11.90
#2C278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2C278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C278A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C278A#FFFFFF#000000##FFFFFF
##2C278A1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c278a;
/* rgb */ color: rgb(44, 39, 138);
/* oklch */ color: oklch(35.1% 0.158 276.8);
Tailwind
colors: {
  custom: {
    50: '#7362ad',
    500: '#2c278a',
    950: '#000000',
  },
}
SCSS
$custom: #2c278a;
$custom-light: #7362ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c278a",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 243.03,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35142,
    "c": 0.15757,
    "h": 276.8
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#2C278A
secondary
#B1B657
accent
#DF49D8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C278A

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

Preview Lab → · Contrast checker → · Palette generator →

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