#2A27BD#2A27BD

#2A27BD is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.5% C 0.221 H 271.6°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2A27BD
RGBrgb(42, 39, 189)
HSLhsl(241, 66%, 45%)
HSVhsv(241, 79%, 74%)
CMYKcmyk(77.8%, 79.4%, 0%, 25.9%)
CIE-LABlab(28.42, 51.17, -76.30)
CIE-LCHlch(28.42, 91.87, 303.84°)
OKLaboklab(40.52% 0.006 -0.2209)
OKLCHoklch(40.52% 0.221 271.6)
XYZxyz(10.8626, 5.6162, 48.6458)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27BD #BABD27
analogous
#276FBD #2A27BD #7527BD
triadic
#2A27BD #BD2A27 #27BD2A
tetradic
#2A27BD #BD276F #BABD27 #27BD75
square
#2A27BD #BD276F #BABD27 #27BD75
split-complementary
#2A27BD #BD7527 #6FBD27
monochromatic
#131258 #1F1D8A #2A27BD #4B48D9 #7D7BE4

Accessibility & contrast

On white

9.89
#2A27BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A27BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27BD
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27BD#FFFFFF#000000##FFFFFF
##2A27BD1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC1
Deuteranopia (green-blind)
#003BBA
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a27bd;
/* rgb */ color: rgb(42, 39, 189);
/* oklch */ color: oklch(40.5% 0.221 271.6);
Tailwind
colors: {
  custom: {
    50: '#7e65d2',
    500: '#2a27bd',
    950: '#000000',
  },
}
SCSS
$custom: #2a27bd;
$custom-light: #7e65d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27bd",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 189
  },
  "hsl": {
    "h": 241.2,
    "s": 65.789,
    "l": 44.706
  },
  "oklch": {
    "l": 0.40516,
    "c": 0.22095,
    "h": 271.6
  },
  "luminance": 0.05617
}

Semantic roles & 50–950 ramp

primary
#2A27BD
secondary
#CACC74
accent
#E93FE5
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2A27BD

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

Preview Lab → · Contrast checker → · Palette generator →

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