#2A27B0#2A27B0

#2A27B0 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.206 H 272.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#2A27B0
RGBrgb(42, 39, 176)
HSLhsl(241, 64%, 42%)
HSVhsv(241, 78%, 69%)
CMYKcmyk(76.1%, 77.8%, 0%, 31%)
CIE-LABlab(26.95, 47.02, -71.00)
CIE-LCHlch(26.95, 85.16, 303.51°)
OKLaboklab(39.06% 0.0087 -0.2055)
OKLCHoklch(39.06% 0.206 272.4)
XYZxyz(9.5142, 5.0769, 41.5444)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27B0 #ADB027
analogous
#2769B0 #2A27B0 #6F27B0
triadic
#2A27B0 #B02A27 #27B02A
tetradic
#2A27B0 #B02769 #ADB027 #27B06F
square
#2A27B0 #B02769 #ADB027 #27B06F
split-complementary
#2A27B0 #B06F27 #69B027
monochromatic
#12114C #1E1C7E #2A27B0 #4340D5 #7472E0

Accessibility & contrast

On white

10.42
#2A27B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A27B0
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27B0#FFFFFF#000000##FFFFFF
##2A27B01.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.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: #2a27b0;
/* rgb */ color: rgb(42, 39, 176);
/* oklch */ color: oklch(39.1% 0.206 272.4);
Tailwind
colors: {
  custom: {
    50: '#7b64c9',
    500: '#2a27b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a27b0;
$custom-light: #7b64c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27b0",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 241.314,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39058,
    "c": 0.20569,
    "h": 272.4
  },
  "luminance": 0.05078
}

Semantic roles & 50–950 ramp

primary
#2A27B0
secondary
#C5C76C
accent
#E741E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A27B0

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

Preview Lab → · Contrast checker → · Palette generator →

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