#2A27C5#2A27C5

#2A27C5 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.4% C 0.230 H 271.1°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2A27C5
RGBrgb(42, 39, 197)
HSLhsl(241, 67%, 46%)
HSVhsv(241, 80%, 77%)
CMYKcmyk(78.7%, 80.2%, 0%, 22.7%)
CIE-LABlab(29.34, 53.66, -79.49)
CIE-LCHlch(29.34, 95.91, 304.02°)
OKLaboklab(41.43% 0.0043 -0.2301)
OKLCHoklch(41.43% 0.23 271.1)
XYZxyz(11.7550, 5.9732, 53.3459)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27C5 #C2C527
analogous
#2773C5 #2A27C5 #7927C5
triadic
#2A27C5 #C52A27 #27C52A
tetradic
#2A27C5 #C52773 #C2C527 #27C579
square
#2A27C5 #C52773 #C2C527 #27C579
split-complementary
#2A27C5 #C57927 #73C527
monochromatic
#14135F #1F1D92 #2A27C5 #504DDC #8280E6

Accessibility & contrast

On white

9.57
#2A27C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A27C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27C5
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27C5#FFFFFF#000000##FFFFFF
##2A27C51.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC9
Deuteranopia (green-blind)
#003DC2
Tritanopia (blue-blind)
#005977
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a27c5;
/* rgb */ color: rgb(42, 39, 197);
/* oklch */ color: oklch(41.4% 0.230 271.1);
Tailwind
colors: {
  custom: {
    50: '#8065d8',
    500: '#2a27c5',
    950: '#000000',
  },
}
SCSS
$custom: #2a27c5;
$custom-light: #8065d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27c5",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 197
  },
  "hsl": {
    "h": 241.139,
    "s": 66.949,
    "l": 46.275
  },
  "oklch": {
    "l": 0.41426,
    "c": 0.23014,
    "h": 271.1
  },
  "luminance": 0.05974
}

Semantic roles & 50–950 ramp

primary
#2A27C5
secondary
#CDCF79
accent
#EA3EE7
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2A27C5

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

Preview Lab → · Contrast checker → · Palette generator →

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