#2C278B#2C278B

#2C278B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.159 H 276.7°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#2C278B
RGBrgb(44, 39, 139)
HSLhsl(243, 56%, 35%)
HSVhsv(243, 72%, 55%)
CMYKcmyk(68.3%, 71.9%, 0%, 45.5%)
CIE-LABlab(23.17, 34.82, -54.65)
CIE-LCHlch(23.17, 64.80, 302.51°)
OKLaboklab(35.24% 0.0185 -0.1578)
OKLCHoklch(35.24% 0.159 276.7)
XYZxyz(6.4229, 3.8500, 24.8257)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C278B #868B27
analogous
#27548B #2C278B #5E278B
triadic
#2C278B #8B2C27 #278B2C
tetradic
#2C278B #8B2754 #868B27 #278B5E
square
#2C278B #8B2754 #868B27 #278B5E
split-complementary
#2C278B #8B5E27 #548B27
monochromatic
#0E0C2B #1D1A5B #2C278B #3B34BB #615BD1

Accessibility & contrast

On white

11.86
#2C278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C278B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C278B#FFFFFF#000000##FFFFFF
##2C278B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c278b;
/* rgb */ color: rgb(44, 39, 139);
/* oklch */ color: oklch(35.2% 0.159 276.7);
Tailwind
colors: {
  custom: {
    50: '#7362ae',
    500: '#2c278b',
    950: '#000000',
  },
}
SCSS
$custom: #2c278b;
$custom-light: #7362ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c278b",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 243,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35243,
    "c": 0.15889,
    "h": 276.7
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#2C278B
secondary
#B1B658
accent
#DF48D8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C278B

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

Preview Lab → · Contrast checker → · Palette generator →

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