#2A28C4#2A28C4

#2A28C4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.4% C 0.228 H 271.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2A28C4
RGBrgb(42, 40, 196)
HSLhsl(241, 66%, 46%)
HSVhsv(241, 80%, 77%)
CMYKcmyk(78.6%, 79.6%, 0%, 23.1%)
CIE-LABlab(29.40, 52.86, -78.81)
CIE-LCHlch(29.40, 94.90, 303.85°)
OKLaboklab(41.43% 0.0042 -0.2282)
OKLCHoklch(41.43% 0.228 271.1)
XYZxyz(11.6741, 5.9940, 52.7555)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28C4 #C2C428
analogous
#2874C4 #2A28C4 #7828C4
triadic
#2A28C4 #C42A28 #28C42A
tetradic
#2A28C4 #C42874 #C2C428 #28C478
square
#2A28C4 #C42874 #C2C428 #28C478
split-complementary
#2A28C4 #C47828 #74C428
monochromatic
#14135E #1F1E91 #2A28C4 #504EDB #8281E5

Accessibility & contrast

On white

9.55
#2A28C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A28C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28C4
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28C4#FFFFFF#000000##FFFFFF
##2A28C41.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC8
Deuteranopia (green-blind)
#003DC1
Tritanopia (blue-blind)
#005976
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a28c4;
/* rgb */ color: rgb(42, 40, 196);
/* oklch */ color: oklch(41.4% 0.228 271.1);
Tailwind
colors: {
  custom: {
    50: '#8066d7',
    500: '#2a28c4',
    950: '#000000',
  },
}
SCSS
$custom: #2a28c4;
$custom-light: #8066d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28c4",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 240.769,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4143,
    "c": 0.2282,
    "h": 271.1
  },
  "luminance": 0.05995
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A28C4

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

Preview Lab → · Contrast checker → · Palette generator →

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