#2A28AA#2A28AA

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

Color values

HEX#2A28AA
RGBrgb(42, 40, 170)
HSLhsl(241, 62%, 41%)
HSVhsv(241, 76%, 67%)
CMYKcmyk(75.3%, 76.5%, 0%, 33.3%)
CIE-LABlab(26.48, 44.51, -68.18)
CIE-LCHlch(26.48, 81.43, 303.14°)
OKLaboklab(38.53% 0.0096 -0.1973)
OKLCHoklch(38.53% 0.198 272.8)
XYZxyz(8.9669, 4.9112, 38.4978)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A28AA #A8AA28
analogous
#2867AA #2A28AA #6B28AA
triadic
#2A28AA #AA2A28 #28AA2A
tetradic
#2A28AA #AA2867 #A8AA28 #28AA6B
square
#2A28AA #AA2867 #A8AA28 #28AA6B
split-complementary
#2A28AA #AA6B28 #67AA28
monochromatic
#121147 #1E1C78 #2A28AA #403ED2 #716FDD

Accessibility & contrast

On white

10.59
#2A28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2A28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A28AA
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A28AA#FFFFFF#000000##FFFFFF
##2A28AA1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AE
Deuteranopia (green-blind)
#0038A8
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2a28aa;
/* rgb */ color: rgb(42, 40, 170);
/* oklch */ color: oklch(38.5% 0.198 272.8);
Tailwind
colors: {
  custom: {
    50: '#7964c5',
    500: '#2a28aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a28aa;
$custom-light: #7964c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a28aa",
  "rgb": {
    "r": 42,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 240.923,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.3853,
    "c": 0.19755,
    "h": 272.8
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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