#2A52B3#2A52B3

#2A52B3 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.8% C 0.161 H 264.2°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2A52B3
RGBrgb(42, 82, 179)
HSLhsl(222, 62%, 43%)
HSVhsv(222, 77%, 70%)
CMYKcmyk(76.5%, 54.2%, 0%, 29.8%)
CIE-LABlab(37.44, 21.20, -55.59)
CIE-LCHlch(37.44, 59.50, 290.88°)
OKLaboklab(46.83% -0.0163 -0.1602)
OKLCHoklch(46.83% 0.161 264.2)
XYZxyz(12.1059, 9.7801, 43.8888)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A52B3 #B38B2A
analogous
#2A96B3 #2A52B3 #462AB3
triadic
#2A52B3 #B32A52 #52B32A
tetradic
#2A52B3 #B32A96 #B38B2A #2AB346
square
#2A52B3 #B32A96 #B38B2A #2AB346
split-complementary
#2A52B3 #B3462A #96B32A
monochromatic
#132550 #1E3B81 #2A52B3 #4670D4 #7896DF

Accessibility & contrast

On white

7.10
#2A52B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A52B3
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A52B3#FFFFFF#000000##FFFFFF
##2A52B31.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a52b3;
/* rgb */ color: rgb(42, 82, 179);
/* oklch */ color: oklch(46.8% 0.161 264.2);
Tailwind
colors: {
  custom: {
    50: '#7882ca',
    500: '#2a52b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a52b3;
$custom-light: #7882ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a52b3",
  "rgb": {
    "r": 42,
    "g": 82,
    "b": 179
  },
  "hsl": {
    "h": 222.482,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46828,
    "c": 0.16103,
    "h": 264.2
  },
  "luminance": 0.09782
}

Semantic roles & 50–950 ramp

primary
#2A52B3
secondary
#C7AE72
accent
#B643E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A52B3

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

Preview Lab → · Contrast checker → · Palette generator →

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