#2A52B5#2A52B5

#2A52B5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.0% C 0.164 H 264.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2A52B5
RGBrgb(42, 82, 181)
HSLhsl(223, 62%, 44%)
HSVhsv(223, 77%, 71%)
CMYKcmyk(76.8%, 54.7%, 0%, 29%)
CIE-LABlab(37.59, 21.97, -56.53)
CIE-LCHlch(37.59, 60.65, 291.24°)
OKLaboklab(46.99% -0.0161 -0.163)
OKLCHoklch(46.99% 0.164 264.3)
XYZxyz(12.3097, 9.8616, 44.9618)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52B5 #B58D2A
analogous
#2A97B5 #2A52B5 #472AB5
triadic
#2A52B5 #B52A52 #52B52A
tetradic
#2A52B5 #B52A97 #B58D2A #2AB547
square
#2A52B5 #B52A97 #B58D2A #2AB547
split-complementary
#2A52B5 #B5472A #97B52A
monochromatic
#132552 #1E3B83 #2A52B5 #4870D4 #7997E0

Accessibility & contrast

On white

7.06
#2A52B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2A52B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52B5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52B5#FFFFFF#000000##FFFFFF
##2A52B51.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a52b5;
/* rgb */ color: rgb(42, 82, 181);
/* oklch */ color: oklch(47.0% 0.164 264.3);
Tailwind
colors: {
  custom: {
    50: '#7882cc',
    500: '#2a52b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a52b5;
$custom-light: #7882cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52b5",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 181
  },
  "hsl": {
    "h": 222.734,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46987,
    "c": 0.16377,
    "h": 264.3
  },
  "luminance": 0.09863
}

Semantic roles & 50–950 ramp

primary
#2A52B5
secondary
#C8AF73
accent
#B642E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52B5

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

Preview Lab → · Contrast checker → · Palette generator →

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