#2A52B7#2A52B7

#2A52B7 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.166 H 264.5°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2A52B7
RGBrgb(42, 82, 183)
HSLhsl(223, 63%, 44%)
HSVhsv(223, 77%, 72%)
CMYKcmyk(77%, 55.2%, 0%, 28.2%)
CIE-LABlab(37.74, 22.73, -57.47)
CIE-LCHlch(37.74, 61.80, 291.58°)
OKLaboklab(47.15% -0.016 -0.1657)
OKLCHoklch(47.15% 0.166 264.5)
XYZxyz(12.5164, 9.9443, 46.0504)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52B7 #B78F2A
analogous
#2A99B7 #2A52B7 #492AB7
triadic
#2A52B7 #B72A52 #52B72A
tetradic
#2A52B7 #B72A99 #B78F2A #2AB749
square
#2A52B7 #B72A99 #B78F2A #2AB749
split-complementary
#2A52B7 #B7492A #99B72A
monochromatic
#132553 #1F3C85 #2A52B7 #4971D5 #7B98E1

Accessibility & contrast

On white

7.03
#2A52B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2A52B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A52B7
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52B7#FFFFFF#000000##FFFFFF
##2A52B71.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#006B7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a52b7;
/* rgb */ color: rgb(42, 82, 183);
/* oklch */ color: oklch(47.1% 0.166 264.5);
Tailwind
colors: {
  custom: {
    50: '#7982cd',
    500: '#2a52b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a52b7;
$custom-light: #7982cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52b7",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 183
  },
  "hsl": {
    "h": 222.979,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.16649,
    "h": 264.5
  },
  "luminance": 0.09946
}

Semantic roles & 50–950 ramp

primary
#2A52B7
secondary
#C9B174
accent
#B742E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #2A52B7

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

Preview Lab → · Contrast checker → · Palette generator →

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