#2A52A3#2A52A3

#2A52A3 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.139 H 262.5°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#2A52A3
RGBrgb(42, 82, 163)
HSLhsl(220, 59%, 40%)
HSVhsv(220, 74%, 64%)
CMYKcmyk(74.2%, 49.7%, 0%, 36.1%)
CIE-LABlab(36.31, 15.05, -47.92)
CIE-LCHlch(36.31, 50.23, 287.44°)
OKLaboklab(45.6% -0.0181 -0.1376)
OKLCHoklch(45.6% 0.139 262.5)
XYZxyz(10.5806, 9.1700, 35.8556)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52A3 #A37B2A
analogous
#2A8FA3 #2A52A3 #3E2AA3
triadic
#2A52A3 #A32A52 #52A32A
tetradic
#2A52A3 #A32A8F #A37B2A #2AA33E
square
#2A52A3 #A32A8F #A37B2A #2AA33E
split-complementary
#2A52A3 #A33E2A #8FA32A
monochromatic
#112142 #1D3A72 #2A52A3 #3D6DCD #6E91DA

Accessibility & contrast

On white

7.41
#2A52A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2A52A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52A3
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52A3#FFFFFF#000000##FFFFFF
##2A52A31.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA6
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a52a3;
/* rgb */ color: rgb(42, 82, 163);
/* oklch */ color: oklch(45.6% 0.139 262.5);
Tailwind
colors: {
  custom: {
    50: '#7482bf',
    500: '#2a52a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a52a3;
$custom-light: #7482bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52a3",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 163
  },
  "hsl": {
    "h": 220.165,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45604,
    "c": 0.13883,
    "h": 262.5
  },
  "luminance": 0.09171
}

Semantic roles & 50–950 ramp

primary
#2A52A3
secondary
#C0A368
accent
#AE46E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A52A3

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

Preview Lab → · Contrast checker → · Palette generator →

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