#2A27C1#2A27C1

#2A27C1 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 41.0% C 0.226 H 271.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2A27C1
RGBrgb(42, 39, 193)
HSLhsl(241, 66%, 45%)
HSVhsv(241, 80%, 76%)
CMYKcmyk(78.2%, 79.8%, 0%, 24.3%)
CIE-LABlab(28.88, 52.42, -77.90)
CIE-LCHlch(28.88, 93.90, 303.94°)
OKLaboklab(40.97% 0.0051 -0.2255)
OKLCHoklch(40.97% 0.226 271.3)
XYZxyz(11.3028, 5.7923, 50.9641)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27C1 #BEC127
analogous
#2771C1 #2A27C1 #7727C1
triadic
#2A27C1 #C12A27 #27C12A
tetradic
#2A27C1 #C12771 #BEC127 #27C177
square
#2A27C1 #C12771 #BEC127 #27C177
split-complementary
#2A27C1 #C17727 #71C127
monochromatic
#14125B #1F1D8E #2A27C1 #4D4BDB #807EE5

Accessibility & contrast

On white

9.73
#2A27C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A27C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27C1
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27C1#FFFFFF#000000##FFFFFF
##2A27C11.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC5
Deuteranopia (green-blind)
#003CBE
Tritanopia (blue-blind)
#005774
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a27c1;
/* rgb */ color: rgb(42, 39, 193);
/* oklch */ color: oklch(41.0% 0.226 271.3);
Tailwind
colors: {
  custom: {
    50: '#7f65d5',
    500: '#2a27c1',
    950: '#000000',
  },
}
SCSS
$custom: #2a27c1;
$custom-light: #7f65d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27c1",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 193
  },
  "hsl": {
    "h": 241.169,
    "s": 66.379,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4097,
    "c": 0.22557,
    "h": 271.3
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#2A27C1
secondary
#CBCD77
accent
#E93EE6
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2A27C1

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

Preview Lab → · Contrast checker → · Palette generator →

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