#2A27B1#2A27B1

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

Color values

HEX#2A27B1
RGBrgb(42, 39, 177)
HSLhsl(241, 64%, 42%)
HSVhsv(241, 78%, 69%)
CMYKcmyk(76.3%, 78%, 0%, 30.6%)
CIE-LABlab(27.06, 47.34, -71.42)
CIE-LCHlch(27.06, 85.68, 303.54°)
OKLaboklab(39.17% 0.0085 -0.2067)
OKLCHoklch(39.17% 0.207 272.4)
XYZxyz(9.6135, 5.1166, 42.0674)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27B1 #AEB127
analogous
#2769B1 #2A27B1 #6F27B1
triadic
#2A27B1 #B12A27 #27B12A
tetradic
#2A27B1 #B12769 #AEB127 #27B16F
square
#2A27B1 #B12769 #AEB127 #27B16F
split-complementary
#2A27B1 #B16F27 #69B127
monochromatic
#12114D #1E1C7F #2A27B1 #4340D5 #7572E0

Accessibility & contrast

On white

10.38
#2A27B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A27B1
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27B1#FFFFFF#000000##FFFFFF
##2A27B11.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B5
Deuteranopia (green-blind)
#0039AF
Tritanopia (blue-blind)
#00516B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a27b1;
/* rgb */ color: rgb(42, 39, 177);
/* oklch */ color: oklch(39.2% 0.207 272.4);
Tailwind
colors: {
  custom: {
    50: '#7b64ca',
    500: '#2a27b1',
    950: '#000000',
  },
}
SCSS
$custom: #2a27b1;
$custom-light: #7b64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27b1",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 241.304,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39169,
    "c": 0.20688,
    "h": 272.4
  },
  "luminance": 0.05118
}

Semantic roles & 50–950 ramp

primary
#2A27B1
secondary
#C5C76D
accent
#E741E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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