#2A52AA#2A52AA

#2A52AA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.149 H 263.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2A52AA
RGBrgb(42, 82, 170)
HSLhsl(221, 60%, 42%)
HSVhsv(221, 75%, 67%)
CMYKcmyk(75.3%, 51.8%, 0%, 33.3%)
CIE-LABlab(36.80, 17.75, -51.31)
CIE-LCHlch(36.80, 54.30, 289.08°)
OKLaboklab(46.13% -0.0172 -0.1476)
OKLCHoklch(46.13% 0.149 263.3)
XYZxyz(11.2253, 9.4279, 39.2506)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52AA #AA822A
analogous
#2A92AA #2A52AA #422AAA
triadic
#2A52AA #AA2A52 #52AA2A
tetradic
#2A52AA #AA2A92 #AA822A #2AAA42
square
#2A52AA #AA2A92 #AA822A #2AAA42
split-complementary
#2A52AA #AA422A #92AA2A
monochromatic
#122348 #1E3A79 #2A52AA #416ED0 #7293DC

Accessibility & contrast

On white

7.28
#2A52AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A52AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52AA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52AA#FFFFFF#000000##FFFFFF
##2A52AA1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195DAD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a52aa;
/* rgb */ color: rgb(42, 82, 170);
/* oklch */ color: oklch(46.1% 0.149 263.3);
Tailwind
colors: {
  custom: {
    50: '#7682c4',
    500: '#2a52aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a52aa;
$custom-light: #7682c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52aa",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 170
  },
  "hsl": {
    "h": 221.25,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46129,
    "c": 0.14861,
    "h": 263.3
  },
  "luminance": 0.09429
}

Semantic roles & 50–950 ramp

primary
#2A52AA
secondary
#C3A86C
accent
#B244E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52AA

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

Preview Lab → · Contrast checker → · Palette generator →

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