#2B52A2#2B52A2

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

Color values

HEX#2B52A2
RGBrgb(43, 82, 162)
HSLhsl(220, 58%, 40%)
HSVhsv(220, 73%, 64%)
CMYKcmyk(73.5%, 49.4%, 0%, 36.5%)
CIE-LABlab(36.28, 14.81, -47.37)
CIE-LCHlch(36.28, 49.63, 287.36°)
OKLaboklab(45.57% -0.0175 -0.136)
OKLCHoklch(45.57% 0.137 262.7)
XYZxyz(10.5328, 9.1557, 35.3875)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B52A2 #A27B2B
analogous
#2B8EA2 #2B52A2 #3F2BA2
triadic
#2B52A2 #A22B52 #52A22B
tetradic
#2B52A2 #A22B8E #A27B2B #2BA23F
square
#2B52A2 #A22B8E #A27B2B #2BA23F
split-complementary
#2B52A2 #A23F2B #8EA22B
monochromatic
#112141 #1E3A72 #2B52A2 #3E6DCC #6F91D9

Accessibility & contrast

On white

7.42
#2B52A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2B52A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B52A2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B52A2#FFFFFF#000000##FFFFFF
##2B52A21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2b52a2;
/* rgb */ color: rgb(43, 82, 162);
/* oklch */ color: oklch(45.6% 0.137 262.7);
Tailwind
colors: {
  custom: {
    50: '#7482be',
    500: '#2b52a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b52a2;
$custom-light: #7482be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b52a2",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 220.336,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45572,
    "c": 0.1371,
    "h": 262.7
  },
  "luminance": 0.09157
}

Semantic roles & 50–950 ramp

primary
#2B52A2
secondary
#C0A369
accent
#AF47E1
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2B52A2

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

Preview Lab → · Contrast checker → · Palette generator →

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