#2C27A1#2C27A1

#2C27A1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.5% C 0.187 H 274.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2C27A1
RGBrgb(44, 39, 161)
HSLhsl(242, 61%, 39%)
HSVhsv(242, 76%, 63%)
CMYKcmyk(72.7%, 75.8%, 0%, 36.9%)
CIE-LABlab(25.44, 42.27, -64.45)
CIE-LCHlch(25.44, 77.08, 303.26°)
OKLaboklab(37.54% 0.0143 -0.1864)
OKLCHoklch(37.54% 0.187 274.4)
XYZxyz(8.1951, 4.5589, 34.1594)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27A1 #9CA127
analogous
#275FA1 #2C27A1 #6927A1
triadic
#2C27A1 #A12C27 #27A12C
tetradic
#2C27A1 #A1275F #9CA127 #27A169
square
#2C27A1 #A1275F #9CA127 #27A169
split-complementary
#2C27A1 #A16927 #5FA127
monochromatic
#110F3E #1F1B70 #2C27A1 #3D37CE #6D68DA

Accessibility & contrast

On white

10.98
#2C27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27A1
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27A1#FFFFFF#000000##FFFFFF
##2C27A11.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c27a1;
/* rgb */ color: rgb(44, 39, 161);
/* oklch */ color: oklch(37.5% 0.187 274.4);
Tailwind
colors: {
  custom: {
    50: '#7863be',
    500: '#2c27a1',
    950: '#000000',
  },
}
SCSS
$custom: #2c27a1;
$custom-light: #7863be;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27a1",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 242.459,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37541,
    "c": 0.18696,
    "h": 274.4
  },
  "luminance": 0.0456
}

Semantic roles & 50–950 ramp

primary
#2C27A1
secondary
#BDC063
accent
#E444DE
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2C27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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