#2C27B0#2C27B0

#2C27B0 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.2% C 0.205 H 273.1°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2C27B0
RGBrgb(44, 39, 176)
HSLhsl(242, 64%, 42%)
HSVhsv(242, 78%, 69%)
CMYKcmyk(75%, 77.8%, 0%, 31%)
CIE-LABlab(27.07, 47.17, -70.80)
CIE-LCHlch(27.07, 85.07, 303.68°)
OKLaboklab(39.18% 0.0111 -0.2049)
OKLCHoklch(39.18% 0.205 273.1)
XYZxyz(9.5981, 5.1201, 41.5483)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C27B0 #ABB027
analogous
#2766B0 #2C27B0 #7127B0
triadic
#2C27B0 #B02C27 #27B02C
tetradic
#2C27B0 #B02766 #ABB027 #27B071
square
#2C27B0 #B02766 #ABB027 #27B071
split-complementary
#2C27B0 #B07127 #66B027
monochromatic
#13114C #1F1C7E #2C27B0 #4540D5 #7672E0

Accessibility & contrast

On white

10.37
#2C27B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2C27B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C27B0
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C27B0#FFFFFF#000000##FFFFFF
##2C27B01.0010.372.0210.37
#FFFFFF10.371.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B4
Deuteranopia (green-blind)
#0039AE
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c27b0;
/* rgb */ color: rgb(44, 39, 176);
/* oklch */ color: oklch(39.2% 0.205 273.1);
Tailwind
colors: {
  custom: {
    50: '#7b64c9',
    500: '#2c27b0',
    950: '#000000',
  },
}
SCSS
$custom: #2c27b0;
$custom-light: #7b64c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c27b0",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 242.19,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39176,
    "c": 0.20516,
    "h": 273.1
  },
  "luminance": 0.05121
}

Semantic roles & 50–950 ramp

primary
#2C27B0
secondary
#C3C76C
accent
#E741E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2C27B0

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

Preview Lab → · Contrast checker → · Palette generator →

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