#2A52C2#2A52C2

#2A52C2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.181 H 265.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2A52C2
RGBrgb(42, 82, 194)
HSLhsl(224, 64%, 46%)
HSVhsv(224, 78%, 76%)
CMYKcmyk(78.4%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.59, 26.91, -62.53)
CIE-LCHlch(38.59, 68.08, 293.29°)
OKLaboklab(48.05% -0.0153 -0.1806)
OKLCHoklch(48.05% 0.181 265.1)
XYZxyz(13.7063, 10.4203, 52.3174)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52C2 #C29A2A
analogous
#2A9EC2 #2A52C2 #4E2AC2
triadic
#2A52C2 #C22A52 #52C22A
tetradic
#2A52C2 #C22A9E #C29A2A #2AC24E
square
#2A52C2 #C22A9E #C29A2A #2AC24E
split-complementary
#2A52C2 #C24E2A #9EC22A
monochromatic
#14275D #1F3D90 #2A52C2 #5074D9 #829CE4

Accessibility & contrast

On white

6.81
#2A52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2A52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A52C2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52C2#FFFFFF#000000##FFFFFF
##2A52C21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a52c2;
/* rgb */ color: rgb(42, 82, 194);
/* oklch */ color: oklch(48.0% 0.181 265.1);
Tailwind
colors: {
  custom: {
    50: '#7b82d5',
    500: '#2a52c2',
    950: '#000000',
  },
}
SCSS
$custom: #2a52c2;
$custom-light: #7b82d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52c2",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 224.211,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48047,
    "c": 0.18126,
    "h": 265.1
  },
  "luminance": 0.10422
}

Semantic roles & 50–950 ramp

primary
#2A52C2
secondary
#CDB77B
accent
#BB40E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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