#2B52A3#2B52A3

#2B52A3 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.139 H 262.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#2B52A3
RGBrgb(43, 82, 163)
HSLhsl(221, 58%, 40%)
HSVhsv(221, 74%, 64%)
CMYKcmyk(73.6%, 49.7%, 0%, 36.1%)
CIE-LABlab(36.35, 15.19, -47.85)
CIE-LCHlch(36.35, 50.21, 287.61°)
OKLaboklab(45.65% -0.0173 -0.1374)
OKLCHoklch(45.65% 0.139 262.8)
XYZxyz(10.6221, 9.1914, 35.8575)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B52A3 #A37C2B
analogous
#2B8EA3 #2B52A3 #402BA3
triadic
#2B52A3 #A32B52 #52A32B
tetradic
#2B52A3 #A32B8E #A37C2B #2BA340
square
#2B52A3 #A32B8E #A37C2B #2BA340
split-complementary
#2B52A3 #A3402B #8EA32B
monochromatic
#112142 #1E3A73 #2B52A3 #3F6DCC #6F92D9

Accessibility & contrast

On white

7.40
#2B52A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2B52A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B52A3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B52A3#FFFFFF#000000##FFFFFF
##2B52A31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA6
Deuteranopia (green-blind)
#0050A1
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2b52a3;
/* rgb */ color: rgb(43, 82, 163);
/* oklch */ color: oklch(45.6% 0.139 262.8);
Tailwind
colors: {
  custom: {
    50: '#7582bf',
    500: '#2b52a3',
    950: '#000000',
  },
}
SCSS
$custom: #2b52a3;
$custom-light: #7582bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b52a3",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 163
  },
  "hsl": {
    "h": 220.5,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45646,
    "c": 0.13851,
    "h": 262.8
  },
  "luminance": 0.09193
}

Semantic roles & 50–950 ramp

primary
#2B52A3
secondary
#C0A46A
accent
#AF46E1
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2B52A3

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

Preview Lab → · Contrast checker → · Palette generator →

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