#2C27AE#2C27AE

#2C27AE is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.0% C 0.203 H 273.3°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#2C27AE
RGBrgb(44, 39, 174)
HSLhsl(242, 63%, 42%)
HSVhsv(242, 78%, 68%)
CMYKcmyk(74.7%, 77.6%, 0%, 31.8%)
CIE-LABlab(26.85, 46.53, -69.97)
CIE-LCHlch(26.85, 84.02, 303.62°)
OKLaboklab(38.96% 0.0116 -0.2024)
OKLCHoklch(38.96% 0.203 273.3)
XYZxyz(9.4017, 5.0415, 40.5138)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27AE #A9AE27
analogous
#2766AE #2C27AE #7027AE
triadic
#2C27AE #AE2C27 #27AE2C
tetradic
#2C27AE #AE2766 #A9AE27 #27AE70
square
#2C27AE #AE2766 #A9AE27 #27AE70
split-complementary
#2C27AE #AE7027 #66AE27
monochromatic
#13114A #1F1C7C #2C27AE #443ED4 #7470DF

Accessibility & contrast

On white

10.46
#2C27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2C27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27AE
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27AE#FFFFFF#000000##FFFFFF
##2C27AE1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#0039AC
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c27ae;
/* rgb */ color: rgb(44, 39, 174);
/* oklch */ color: oklch(39.0% 0.203 273.3);
Tailwind
colors: {
  custom: {
    50: '#7b64c8',
    500: '#2c27ae',
    950: '#000000',
  },
}
SCSS
$custom: #2c27ae;
$custom-light: #7b64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27ae",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 242.222,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.38955,
    "c": 0.20278,
    "h": 273.3
  },
  "luminance": 0.05043
}

Semantic roles & 50–950 ramp

primary
#2C27AE
secondary
#C3C66B
accent
#E641E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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