#2A28AE#2A28AE

#2A28AE is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.0% C 0.202 H 272.5°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2A28AE
RGBrgb(42, 40, 174)
HSLhsl(241, 63%, 42%)
HSVhsv(241, 77%, 68%)
CMYKcmyk(75.9%, 77%, 0%, 31.8%)
CIE-LABlab(26.92, 45.83, -69.86)
CIE-LCHlch(26.92, 83.55, 303.26°)
OKLaboklab(38.97% 0.0088 -0.2022)
OKLCHoklch(38.97% 0.202 272.5)
XYZxyz(9.3511, 5.0648, 40.5210)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28AE #ACAE28
analogous
#2869AE #2A28AE #6D28AE
triadic
#2A28AE #AE2A28 #28AE2A
tetradic
#2A28AE #AE2869 #ACAE28 #28AE6D
square
#2A28AE #AE2869 #ACAE28 #28AE6D
split-complementary
#2A28AE #AE6D28 #69AE28
monochromatic
#12114A #1E1D7C #2A28AE #4240D3 #7372DF

Accessibility & contrast

On white

10.43
#2A28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2A28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28AE
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28AE#FFFFFF#000000##FFFFFF
##2A28AE1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B2
Deuteranopia (green-blind)
#0039AC
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a28ae;
/* rgb */ color: rgb(42, 40, 174);
/* oklch */ color: oklch(39.0% 0.202 272.5);
Tailwind
colors: {
  custom: {
    50: '#7a64c7',
    500: '#2a28ae',
    950: '#000000',
  },
}
SCSS
$custom: #2a28ae;
$custom-light: #7a64c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28ae",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 240.896,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.38969,
    "c": 0.20238,
    "h": 272.5
  },
  "luminance": 0.05066
}

Semantic roles & 50–950 ramp

primary
#2A28AE
secondary
#C4C66C
accent
#E642E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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