#2A27AB#2A27AB

#2A27AB is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.200 H 272.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2A27AB
RGBrgb(42, 39, 171)
HSLhsl(241, 63%, 41%)
HSVhsv(241, 77%, 67%)
CMYKcmyk(75.4%, 77.2%, 0%, 32.9%)
CIE-LABlab(26.40, 45.39, -68.92)
CIE-LCHlch(26.40, 82.52, 303.37°)
OKLaboklab(38.51% 0.0098 -0.1994)
OKLCHoklch(38.51% 0.2 272.8)
XYZxyz(9.0286, 4.8826, 38.9868)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A27AB #A8AB27
analogous
#2766AB #2A27AB #6C27AB
triadic
#2A27AB #AB2A27 #27AB2A
tetradic
#2A27AB #AB2766 #A8AB27 #27AB6C
square
#2A27AB #AB2766 #A8AB27 #27AB6C
split-complementary
#2A27AB #AB6C27 #66AB27
monochromatic
#121047 #1E1C79 #2A27AB #403DD3 #716EDE

Accessibility & contrast

On white

10.62
#2A27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A27AB
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A27AB#FFFFFF#000000##FFFFFF
##2A27AB1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0038A9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a27ab;
/* rgb */ color: rgb(42, 39, 171);
/* oklch */ color: oklch(38.5% 0.200 272.8);
Tailwind
colors: {
  custom: {
    50: '#7a64c5',
    500: '#2a27ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a27ab;
$custom-light: #7a64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a27ab",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 241.364,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38505,
    "c": 0.19969,
    "h": 272.8
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#2A27AB
secondary
#C3C569
accent
#E642E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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