#2A52A4#2A52A4

#2A52A4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.7% C 0.140 H 262.6°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#2A52A4
RGBrgb(42, 82, 164)
HSLhsl(220, 59%, 40%)
HSVhsv(220, 74%, 64%)
CMYKcmyk(74.4%, 50%, 0%, 35.7%)
CIE-LABlab(36.38, 15.44, -48.41)
CIE-LCHlch(36.38, 50.81, 287.69°)
OKLaboklab(45.68% -0.018 -0.1391)
OKLCHoklch(45.68% 0.14 262.6)
XYZxyz(10.6706, 9.2060, 36.3293)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52A4 #A47C2A
analogous
#2A8FA4 #2A52A4 #3F2AA4
triadic
#2A52A4 #A42A52 #52A42A
tetradic
#2A52A4 #A42A8F #A47C2A #2AA43F
square
#2A52A4 #A42A8F #A47C2A #2AA43F
split-complementary
#2A52A4 #A43F2A #8FA42A
monochromatic
#112143 #1E3A73 #2A52A4 #3E6DCD #6E92DA

Accessibility & contrast

On white

7.39
#2A52A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2A52A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52A4
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52A4#FFFFFF#000000##FFFFFF
##2A52A41.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225CA7
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a52a4;
/* rgb */ color: rgb(42, 82, 164);
/* oklch */ color: oklch(45.7% 0.140 262.6);
Tailwind
colors: {
  custom: {
    50: '#7482bf',
    500: '#2a52a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a52a4;
$custom-light: #7482bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52a4",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 220.328,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45678,
    "c": 0.14023,
    "h": 262.6
  },
  "luminance": 0.09207
}

Semantic roles & 50–950 ramp

primary
#2A52A4
secondary
#C1A469
accent
#AF45E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A52A4

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

Preview Lab → · Contrast checker → · Palette generator →

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