#2A28BA#2A28BA

#2A28BA is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.3% C 0.217 H 271.7°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#2A28BA
RGBrgb(42, 40, 186)
HSLhsl(241, 65%, 44%)
HSVhsv(241, 78%, 73%)
CMYKcmyk(77.4%, 78.5%, 0%, 27.1%)
CIE-LABlab(28.26, 49.71, -74.80)
CIE-LCHlch(28.26, 89.81, 303.60°)
OKLaboklab(40.3% 0.0063 -0.2165)
OKLCHoklch(40.3% 0.217 271.7)
XYZxyz(10.5736, 5.5538, 46.9596)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28BA #B8BA28
analogous
#286FBA #2A28BA #7328BA
triadic
#2A28BA #BA2A28 #28BA2A
tetradic
#2A28BA #BA286F #B8BA28 #28BA73
square
#2A28BA #BA286F #B8BA28 #28BA73
split-complementary
#2A28BA #BA7328 #6FBA28
monochromatic
#131255 #1F1D88 #2A28BA #4A48D8 #7B7AE2

Accessibility & contrast

On white

9.95
#2A28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2A28BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28BA
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28BA#FFFFFF#000000##FFFFFF
##2A28BA1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABE
Deuteranopia (green-blind)
#003BB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a28ba;
/* rgb */ color: rgb(42, 40, 186);
/* oklch */ color: oklch(40.3% 0.217 271.7);
Tailwind
colors: {
  custom: {
    50: '#7d65d0',
    500: '#2a28ba',
    950: '#000000',
  },
}
SCSS
$custom: #2a28ba;
$custom-light: #7d65d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28ba",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 240.822,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40302,
    "c": 0.21662,
    "h": 271.7
  },
  "luminance": 0.05555
}

Semantic roles & 50–950 ramp

primary
#2A28BA
secondary
#C9CA73
accent
#E840E5
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2A28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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