#2C278E#2C278E

#2C278E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.163 H 276.3°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2C278E
RGBrgb(44, 39, 142)
HSLhsl(243, 57%, 35%)
HSVhsv(243, 73%, 56%)
CMYKcmyk(69%, 72.5%, 0%, 44.3%)
CIE-LABlab(23.47, 35.86, -56.02)
CIE-LCHlch(23.47, 66.52, 302.62°)
OKLaboklab(35.55% 0.0179 -0.1618)
OKLCHoklch(35.55% 0.163 276.3)
XYZxyz(6.6451, 3.9389, 25.9960)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C278E #898E27
analogous
#27558E #2C278E #60278E
triadic
#2C278E #8E2C27 #278E2C
tetradic
#2C278E #8E2755 #898E27 #278E60
square
#2C278E #8E2755 #898E27 #278E60
split-complementary
#2C278E #8E6027 #558E27
monochromatic
#0E0D2E #1D1A5E #2C278E #3B34BE #635DD2

Accessibility & contrast

On white

11.74
#2C278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2C278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C278E
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C278E#FFFFFF#000000##FFFFFF
##2C278E1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c278e;
/* rgb */ color: rgb(44, 39, 142);
/* oklch */ color: oklch(35.5% 0.163 276.3);
Tailwind
colors: {
  custom: {
    50: '#7362b0',
    500: '#2c278e',
    950: '#000000',
  },
}
SCSS
$custom: #2c278e;
$custom-light: #7362b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c278e",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 242.913,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35548,
    "c": 0.16283,
    "h": 276.3
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#2C278E
secondary
#B3B859
accent
#E048D9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C278E

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

Preview Lab → · Contrast checker → · Palette generator →

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