#2A27C4#2A27C4

#2A27C4 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 41.3% C 0.229 H 271.1°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2A27C4
RGBrgb(42, 39, 196)
HSLhsl(241, 67%, 46%)
HSVhsv(241, 80%, 77%)
CMYKcmyk(78.6%, 80.1%, 0%, 23.1%)
CIE-LABlab(29.23, 53.35, -79.09)
CIE-LCHlch(29.23, 95.41, 304.00°)
OKLaboklab(41.31% 0.0045 -0.229)
OKLCHoklch(41.31% 0.229 271.1)
XYZxyz(11.6408, 5.9275, 52.7445)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27C4 #C1C427
analogous
#2773C4 #2A27C4 #7827C4
triadic
#2A27C4 #C42A27 #27C42A
tetradic
#2A27C4 #C42773 #C1C427 #27C478
square
#2A27C4 #C42773 #C1C427 #27C478
split-complementary
#2A27C4 #C47827 #73C427
monochromatic
#14135E #1F1D91 #2A27C4 #4F4DDC #8280E6

Accessibility & contrast

On white

9.61
#2A27C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A27C4
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27C4#FFFFFF#000000##FFFFFF
##2A27C41.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC8
Deuteranopia (green-blind)
#003DC1
Tritanopia (blue-blind)
#005876
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a27c4;
/* rgb */ color: rgb(42, 39, 196);
/* oklch */ color: oklch(41.3% 0.229 271.1);
Tailwind
colors: {
  custom: {
    50: '#8065d7',
    500: '#2a27c4',
    950: '#000000',
  },
}
SCSS
$custom: #2a27c4;
$custom-light: #8065d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27c4",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 196
  },
  "hsl": {
    "h": 241.146,
    "s": 66.809,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41312,
    "c": 0.229,
    "h": 271.1
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#2A27C4
secondary
#CDCE79
accent
#EA3EE6
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2A27C4

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

Preview Lab → · Contrast checker → · Palette generator →

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