#2A28AC#2A28AC

#2A28AC is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.200 H 272.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2A28AC
RGBrgb(42, 40, 172)
HSLhsl(241, 62%, 42%)
HSVhsv(241, 77%, 67%)
CMYKcmyk(75.6%, 76.7%, 0%, 32.5%)
CIE-LABlab(26.70, 45.17, -69.02)
CIE-LCHlch(26.70, 82.49, 303.20°)
OKLaboklab(38.75% 0.0092 -0.1998)
OKLCHoklch(38.75% 0.2 272.6)
XYZxyz(9.1575, 4.9874, 39.5018)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28AC #AAAC28
analogous
#2868AC #2A28AC #6C28AC
triadic
#2A28AC #AC2A28 #28AC2A
tetradic
#2A28AC #AC2868 #AAAC28 #28AC6C
square
#2A28AC #AC2868 #AAAC28 #28AC6C
split-complementary
#2A28AC #AC6C28 #68AC28
monochromatic
#121149 #1E1C7A #2A28AC #413FD2 #7271DE

Accessibility & contrast

On white

10.51
#2A28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2A28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28AC
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28AC#FFFFFF#000000##FFFFFF
##2A28AC1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B0
Deuteranopia (green-blind)
#0039AA
Tritanopia (blue-blind)
#004F69
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a28ac;
/* rgb */ color: rgb(42, 40, 172);
/* oklch */ color: oklch(38.7% 0.200 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a64c6',
    500: '#2a28ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a28ac;
$custom-light: #7a64c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28ac",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 240.909,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38749,
    "c": 0.19997,
    "h": 272.6
  },
  "luminance": 0.04988
}

Semantic roles & 50–950 ramp

primary
#2A28AC
secondary
#C3C56B
accent
#E542E3
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2A28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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