#2C27AC#2C27AC

#2C27AC is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.7% C 0.200 H 273.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#2C27AC
RGBrgb(44, 39, 172)
HSLhsl(242, 63%, 41%)
HSVhsv(242, 77%, 67%)
CMYKcmyk(74.4%, 77.3%, 0%, 32.5%)
CIE-LABlab(26.63, 45.88, -69.13)
CIE-LCHlch(26.63, 82.97, 303.57°)
OKLaboklab(38.74% 0.012 -0.2)
OKLCHoklch(38.74% 0.2 273.4)
XYZxyz(9.2081, 4.9641, 39.4946)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27AC #A7AC27
analogous
#2765AC #2C27AC #6F27AC
triadic
#2C27AC #AC2C27 #27AC2C
tetradic
#2C27AC #AC2765 #A7AC27 #27AC6F
square
#2C27AC #AC2765 #A7AC27 #27AC6F
split-complementary
#2C27AC #AC6F27 #65AC27
monochromatic
#121048 #1F1C7A #2C27AC #433DD3 #736FDE

Accessibility & contrast

On white

10.54
#2C27AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2C27AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27AC
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27AC#FFFFFF#000000##FFFFFF
##2C27AC1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B0
Deuteranopia (green-blind)
#0039AA
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c27ac;
/* rgb */ color: rgb(44, 39, 172);
/* oklch */ color: oklch(38.7% 0.200 273.4);
Tailwind
colors: {
  custom: {
    50: '#7a64c6',
    500: '#2c27ac',
    950: '#000000',
  },
}
SCSS
$custom: #2c27ac;
$custom-light: #7a64c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27ac",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 242.256,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38735,
    "c": 0.20038,
    "h": 273.4
  },
  "luminance": 0.04965
}

Semantic roles & 50–950 ramp

primary
#2C27AC
secondary
#C2C56A
accent
#E642E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2C27AC

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

Preview Lab → · Contrast checker → · Palette generator →

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