#2A52B4#2A52B4

#2A52B4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.162 H 264.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2A52B4
RGBrgb(42, 82, 180)
HSLhsl(223, 62%, 44%)
HSVhsv(223, 77%, 71%)
CMYKcmyk(76.7%, 54.4%, 0%, 29.4%)
CIE-LABlab(37.52, 21.59, -56.06)
CIE-LCHlch(37.52, 60.07, 291.06°)
OKLaboklab(46.91% -0.0162 -0.1616)
OKLCHoklch(46.91% 0.162 264.3)
XYZxyz(12.2074, 9.8207, 44.4234)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52B4 #B48C2A
analogous
#2A97B4 #2A52B4 #472AB4
triadic
#2A52B4 #B42A52 #52B42A
tetradic
#2A52B4 #B42A97 #B48C2A #2AB447
square
#2A52B4 #B42A97 #B48C2A #2AB447
split-complementary
#2A52B4 #B4472A #97B42A
monochromatic
#132551 #1E3B82 #2A52B4 #4770D4 #7997E0

Accessibility & contrast

On white

7.08
#2A52B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2A52B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52B4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52B4#FFFFFF#000000##FFFFFF
##2A52B41.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a52b4;
/* rgb */ color: rgb(42, 82, 180);
/* oklch */ color: oklch(46.9% 0.162 264.3);
Tailwind
colors: {
  custom: {
    50: '#7882cb',
    500: '#2a52b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a52b4;
$custom-light: #7882cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52b4",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 180
  },
  "hsl": {
    "h": 222.609,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46908,
    "c": 0.1624,
    "h": 264.3
  },
  "luminance": 0.09822
}

Semantic roles & 50–950 ramp

primary
#2A52B4
secondary
#C8AF72
accent
#B643E5
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52B4

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

Preview Lab → · Contrast checker → · Palette generator →

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