#2A28C5#2A28C5

#2A28C5 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.5% C 0.229 H 271.0°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2A28C5
RGBrgb(42, 40, 197)
HSLhsl(241, 66%, 46%)
HSVhsv(241, 80%, 77%)
CMYKcmyk(78.7%, 79.7%, 0%, 22.7%)
CIE-LABlab(29.51, 53.17, -79.21)
CIE-LCHlch(29.51, 95.40, 303.87°)
OKLaboklab(41.54% 0.004 -0.2293)
OKLCHoklch(41.54% 0.229 271)
XYZxyz(11.7883, 6.0397, 53.3570)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28C5 #C3C528
analogous
#2875C5 #2A28C5 #7928C5
triadic
#2A28C5 #C52A28 #28C52A
tetradic
#2A28C5 #C52875 #C3C528 #28C579
square
#2A28C5 #C52875 #C3C528 #28C579
split-complementary
#2A28C5 #C57928 #75C528
monochromatic
#14135F #1F1E92 #2A28C5 #514FDB #8382E6

Accessibility & contrast

On white

9.51
#2A28C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2A28C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28C5
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28C5#FFFFFF#000000##FFFFFF
##2A28C51.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC9
Deuteranopia (green-blind)
#003DC2
Tritanopia (blue-blind)
#005977
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a28c5;
/* rgb */ color: rgb(42, 40, 197);
/* oklch */ color: oklch(41.5% 0.229 271.0);
Tailwind
colors: {
  custom: {
    50: '#8066d8',
    500: '#2a28c5',
    950: '#000000',
  },
}
SCSS
$custom: #2a28c5;
$custom-light: #8066d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28c5",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 240.764,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.41543,
    "c": 0.22935,
    "h": 271
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#2A28C5
secondary
#CDCE7A
accent
#E93FE7
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2A28C5

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

Preview Lab → · Contrast checker → · Palette generator →

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