#2C27AB#2C27AB

#2C27AB is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.6% C 0.199 H 273.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2C27AB
RGBrgb(44, 39, 171)
HSLhsl(242, 63%, 41%)
HSVhsv(242, 77%, 67%)
CMYKcmyk(74.3%, 77.2%, 0%, 32.9%)
CIE-LABlab(26.52, 45.56, -68.71)
CIE-LCHlch(26.52, 82.44, 303.54°)
OKLaboklab(38.63% 0.0122 -0.1988)
OKLCHoklch(38.63% 0.199 273.5)
XYZxyz(9.1125, 4.9259, 38.9907)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27AB #A6AB27
analogous
#2764AB #2C27AB #6E27AB
triadic
#2C27AB #AB2C27 #27AB2C
tetradic
#2C27AB #AB2764 #A6AB27 #27AB6E
square
#2C27AB #AB2764 #A6AB27 #27AB6E
split-complementary
#2C27AB #AB6E27 #64AB27
monochromatic
#121047 #1F1C79 #2C27AB #423DD3 #736EDE

Accessibility & contrast

On white

10.58
#2C27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C27AB
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27AB#FFFFFF#000000##FFFFFF
##2C27AB1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0038A9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2c27ab;
/* rgb */ color: rgb(44, 39, 171);
/* oklch */ color: oklch(38.6% 0.199 273.5);
Tailwind
colors: {
  custom: {
    50: '#7a64c5',
    500: '#2c27ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c27ab;
$custom-light: #7a64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27ab",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 242.273,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38626,
    "c": 0.19917,
    "h": 273.5
  },
  "luminance": 0.04927
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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