#2A27B4#2A27B4

#2A27B4 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.5% C 0.210 H 272.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#2A27B4
RGBrgb(42, 39, 180)
HSLhsl(241, 64%, 43%)
HSVhsv(241, 78%, 71%)
CMYKcmyk(76.7%, 78.3%, 0%, 29.4%)
CIE-LABlab(27.40, 48.31, -72.65)
CIE-LCHlch(27.40, 87.24, 303.62°)
OKLaboklab(39.5% 0.0079 -0.2103)
OKLCHoklch(39.5% 0.21 272.1)
XYZxyz(9.9158, 5.2375, 43.6595)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27B4 #B1B427
analogous
#276AB4 #2A27B4 #7127B4
triadic
#2A27B4 #B42A27 #27B42A
tetradic
#2A27B4 #B4276A #B1B427 #27B471
square
#2A27B4 #B4276A #B1B427 #27B471
split-complementary
#2A27B4 #B47127 #6AB427
monochromatic
#13114F #1E1C82 #2A27B4 #4542D6 #7774E1

Accessibility & contrast

On white

10.25
#2A27B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A27B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27B4
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27B4#FFFFFF#000000##FFFFFF
##2A27B41.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003AB2
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a27b4;
/* rgb */ color: rgb(42, 39, 180);
/* oklch */ color: oklch(39.5% 0.210 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c64cc',
    500: '#2a27b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a27b4;
$custom-light: #7c64cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27b4",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 241.277,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.39504,
    "c": 0.21043,
    "h": 272.1
  },
  "luminance": 0.05239
}

Semantic roles & 50–950 ramp

primary
#2A27B4
secondary
#C6C86F
accent
#E740E4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2A27B4

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

Preview Lab → · Contrast checker → · Palette generator →

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