#2A52B2#2A52B2

#2A52B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.160 H 264.1°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2A52B2
RGBrgb(42, 82, 178)
HSLhsl(222, 62%, 43%)
HSVhsv(222, 76%, 70%)
CMYKcmyk(76.4%, 53.9%, 0%, 30.2%)
CIE-LABlab(37.37, 20.82, -55.12)
CIE-LCHlch(37.37, 58.92, 290.69°)
OKLaboklab(46.75% -0.0164 -0.1588)
OKLCHoklch(46.75% 0.16 264.1)
XYZxyz(12.0052, 9.7398, 43.3581)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52B2 #B28A2A
analogous
#2A96B2 #2A52B2 #462AB2
triadic
#2A52B2 #B22A52 #52B22A
tetradic
#2A52B2 #B22A96 #B28A2A #2AB246
square
#2A52B2 #B22A96 #B28A2A #2AB246
split-complementary
#2A52B2 #B2462A #96B22A
monochromatic
#13244F #1E3B80 #2A52B2 #466FD3 #7796DF

Accessibility & contrast

On white

7.12
#2A52B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2A52B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52B2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52B2#FFFFFF#000000##FFFFFF
##2A52B21.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a52b2;
/* rgb */ color: rgb(42, 82, 178);
/* oklch */ color: oklch(46.7% 0.160 264.1);
Tailwind
colors: {
  custom: {
    50: '#7882ca',
    500: '#2a52b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a52b2;
$custom-light: #7882ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52b2",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 222.353,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46749,
    "c": 0.15966,
    "h": 264.1
  },
  "luminance": 0.09741
}

Semantic roles & 50–950 ramp

primary
#2A52B2
secondary
#C7AE71
accent
#B543E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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