#2A52AC#2A52AC

#2A52AC is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.3% C 0.151 H 263.6°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2A52AC
RGBrgb(42, 82, 172)
HSLhsl(222, 61%, 42%)
HSVhsv(222, 76%, 67%)
CMYKcmyk(75.6%, 52.3%, 0%, 32.5%)
CIE-LABlab(36.94, 18.52, -52.27)
CIE-LCHlch(36.94, 55.45, 289.51°)
OKLaboklab(46.28% -0.017 -0.1504)
OKLCHoklch(46.28% 0.151 263.6)
XYZxyz(11.4159, 9.5041, 40.2546)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52AC #AC842A
analogous
#2A93AC #2A52AC #432AAC
triadic
#2A52AC #AC2A52 #52AC2A
tetradic
#2A52AC #AC2A93 #AC842A #2AAC43
square
#2A52AC #AC2A93 #AC842A #2AAC43
split-complementary
#2A52AC #AC432A #93AC2A
monochromatic
#12234A #1E3B7B #2A52AC #426ED1 #7394DD

Accessibility & contrast

On white

7.24
#2A52AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2A52AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52AC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52AC#FFFFFF#000000##FFFFFF
##2A52AC1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165DAF
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a52ac;
/* rgb */ color: rgb(42, 82, 172);
/* oklch */ color: oklch(46.3% 0.151 263.6);
Tailwind
colors: {
  custom: {
    50: '#7682c5',
    500: '#2a52ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a52ac;
$custom-light: #7682c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52ac",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 221.538,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46282,
    "c": 0.1514,
    "h": 263.6
  },
  "luminance": 0.09505
}

Semantic roles & 50–950 ramp

primary
#2A52AC
secondary
#C4AA6D
accent
#B344E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52AC

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

Preview Lab → · Contrast checker → · Palette generator →

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