#2A52A5#2A52A5

#2A52A5 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.142 H 262.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#2A52A5
RGBrgb(42, 82, 165)
HSLhsl(220, 59%, 41%)
HSVhsv(220, 75%, 65%)
CMYKcmyk(74.5%, 50.3%, 0%, 35.3%)
CIE-LABlab(36.45, 15.82, -48.90)
CIE-LCHlch(36.45, 51.39, 287.93°)
OKLaboklab(45.75% -0.0178 -0.1405)
OKLCHoklch(45.75% 0.142 262.8)
XYZxyz(10.7612, 9.2423, 36.8068)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52A5 #A57D2A
analogous
#2A8FA5 #2A52A5 #402AA5
triadic
#2A52A5 #A52A52 #52A52A
tetradic
#2A52A5 #A52A8F #A57D2A #2AA540
square
#2A52A5 #A52A8F #A57D2A #2AA540
split-complementary
#2A52A5 #A5402A #8FA52A
monochromatic
#112243 #1E3A74 #2A52A5 #3E6DCE #6F92DA

Accessibility & contrast

On white

7.37
#2A52A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2A52A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52A5
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52A5#FFFFFF#000000##FFFFFF
##2A52A51.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215CA8
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a52a5;
/* rgb */ color: rgb(42, 82, 165);
/* oklch */ color: oklch(45.8% 0.142 262.8);
Tailwind
colors: {
  custom: {
    50: '#7582c0',
    500: '#2a52a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a52a5;
$custom-light: #7582c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52a5",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 165
  },
  "hsl": {
    "h": 220.488,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45752,
    "c": 0.14163,
    "h": 262.8
  },
  "luminance": 0.09243
}

Semantic roles & 50–950 ramp

primary
#2A52A5
secondary
#C1A569
accent
#AF45E3
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A52A5

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

Preview Lab → · Contrast checker → · Palette generator →

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