#2A28A1#2A28A1

#2A28A1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.186 H 273.5°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2A28A1
RGBrgb(42, 40, 161)
HSLhsl(241, 60%, 39%)
HSVhsv(241, 75%, 63%)
CMYKcmyk(73.9%, 75.2%, 0%, 36.9%)
CIE-LABlab(25.51, 41.51, -64.34)
CIE-LCHlch(25.51, 76.57, 302.83°)
OKLaboklab(37.56% 0.0113 -0.1861)
OKLCHoklch(37.56% 0.186 273.5)
XYZxyz(8.1445, 4.5822, 34.1665)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28A1 #9FA128
analogous
#2863A1 #2A28A1 #6728A1
triadic
#2A28A1 #A12A28 #28A12A
tetradic
#2A28A1 #A12863 #9FA128 #28A167
square
#2A28A1 #A12863 #9FA128 #28A167
split-complementary
#2A28A1 #A16728 #63A128
monochromatic
#10103F #1D1C70 #2A28A1 #3B39CE #6B6ADA

Accessibility & contrast

On white

10.96
#2A28A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2A28A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28A1
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28A1#FFFFFF#000000##FFFFFF
##2A28A11.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a28a1;
/* rgb */ color: rgb(42, 40, 161);
/* oklch */ color: oklch(37.6% 0.186 273.5);
Tailwind
colors: {
  custom: {
    50: '#7764be',
    500: '#2a28a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a28a1;
$custom-light: #7764be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28a1",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 240.992,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37556,
    "c": 0.18648,
    "h": 273.5
  },
  "luminance": 0.04583
}

Semantic roles & 50–950 ramp

primary
#2A28A1
secondary
#BFC065
accent
#E344E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2A28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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