#2A27AE#2A27AE

#2A27AE is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 38.8% C 0.203 H 272.6°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2A27AE
RGBrgb(42, 39, 174)
HSLhsl(241, 63%, 42%)
HSVhsv(241, 78%, 68%)
CMYKcmyk(75.9%, 77.6%, 0%, 31.8%)
CIE-LABlab(26.73, 46.37, -70.17)
CIE-LCHlch(26.73, 84.11, 303.45°)
OKLaboklab(38.84% 0.0091 -0.2031)
OKLCHoklch(38.84% 0.203 272.6)
XYZxyz(9.3178, 4.9983, 40.5099)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27AE #ABAE27
analogous
#2768AE #2A27AE #6E27AE
triadic
#2A27AE #AE2A27 #27AE2A
tetradic
#2A27AE #AE2768 #ABAE27 #27AE6E
square
#2A27AE #AE2768 #ABAE27 #27AE6E
split-complementary
#2A27AE #AE6E27 #68AE27
monochromatic
#12114A #1E1C7C #2A27AE #423ED4 #7370DF

Accessibility & contrast

On white

10.50
#2A27AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A27AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27AE
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27AE#FFFFFF#000000##FFFFFF
##2A27AE1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#0038AC
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a27ae;
/* rgb */ color: rgb(42, 39, 174);
/* oklch */ color: oklch(38.8% 0.203 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a64c8',
    500: '#2a27ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a27ae;
$custom-light: #7a64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27ae",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 241.333,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.38836,
    "c": 0.2033,
    "h": 272.6
  },
  "luminance": 0.04999
}

Semantic roles & 50–950 ramp

primary
#2A27AE
secondary
#C4C66B
accent
#E641E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A27AE

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

Preview Lab → · Contrast checker → · Palette generator →

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