#2A28A9#2A28A9

#2A28A9 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.196 H 272.8°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2A28A9
RGBrgb(42, 40, 169)
HSLhsl(241, 62%, 41%)
HSVhsv(241, 76%, 66%)
CMYKcmyk(75.1%, 76.3%, 0%, 33.7%)
CIE-LABlab(26.37, 44.18, -67.76)
CIE-LCHlch(26.37, 80.89, 303.11°)
OKLaboklab(38.42% 0.0098 -0.1961)
OKLCHoklch(38.42% 0.196 272.8)
XYZxyz(8.8727, 4.8735, 38.0015)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28A9 #A7A928
analogous
#2866A9 #2A28A9 #6A28A9
triadic
#2A28A9 #A92A28 #28A92A
tetradic
#2A28A9 #A92866 #A7A928 #28A96A
square
#2A28A9 #A92866 #A7A928 #28A96A
split-complementary
#2A28A9 #A96A28 #66A928
monochromatic
#111146 #1E1C78 #2A28A9 #3F3DD1 #706FDD

Accessibility & contrast

On white

10.63
#2A28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28A9
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28A9#FFFFFF#000000##FFFFFF
##2A28A91.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0038A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a28a9;
/* rgb */ color: rgb(42, 40, 169);
/* oklch */ color: oklch(38.4% 0.196 272.8);
Tailwind
colors: {
  custom: {
    50: '#7964c4',
    500: '#2a28a9',
    950: '#000000',
  },
}
SCSS
$custom: #2a28a9;
$custom-light: #7964c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28a9",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 240.93,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38421,
    "c": 0.19633,
    "h": 272.8
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#2A28A9
secondary
#C2C469
accent
#E543E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2A28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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