#2A52A2#2A52A2

#2A52A2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.137 H 262.4°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2A52A2
RGBrgb(42, 82, 162)
HSLhsl(220, 59%, 40%)
HSVhsv(220, 74%, 64%)
CMYKcmyk(74.1%, 49.4%, 0%, 36.5%)
CIE-LABlab(36.24, 14.67, -47.43)
CIE-LCHlch(36.24, 49.65, 287.18°)
OKLaboklab(45.53% -0.0183 -0.1362)
OKLCHoklch(45.53% 0.137 262.4)
XYZxyz(10.4914, 9.1343, 35.3856)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52A2 #A27A2A
analogous
#2A8EA2 #2A52A2 #3E2AA2
triadic
#2A52A2 #A22A52 #52A22A
tetradic
#2A52A2 #A22A8E #A27A2A #2AA23E
square
#2A52A2 #A22A8E #A27A2A #2AA23E
split-complementary
#2A52A2 #A23E2A #8EA22A
monochromatic
#112141 #1D3971 #2A52A2 #3D6DCD #6D91D9

Accessibility & contrast

On white

7.43
#2A52A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A52A2
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52A2#FFFFFF#000000##FFFFFF
##2A52A21.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a52a2;
/* rgb */ color: rgb(42, 82, 162);
/* oklch */ color: oklch(45.5% 0.137 262.4);
Tailwind
colors: {
  custom: {
    50: '#7482be',
    500: '#2a52a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a52a2;
$custom-light: #7482be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52a2",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 220,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.4553,
    "c": 0.13742,
    "h": 262.4
  },
  "luminance": 0.09135
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A52A2

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

Preview Lab → · Contrast checker → · Palette generator →

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