#2B52A1#2B52A1

#2B52A1 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.136 H 262.5°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#2B52A1
RGBrgb(43, 82, 161)
HSLhsl(220, 58%, 40%)
HSVhsv(220, 73%, 63%)
CMYKcmyk(73.3%, 49.1%, 0%, 36.9%)
CIE-LABlab(36.21, 14.42, -46.88)
CIE-LCHlch(36.21, 49.04, 287.10°)
OKLaboklab(45.5% -0.0176 -0.1345)
OKLCHoklch(45.5% 0.136 262.5)
XYZxyz(10.4443, 9.1203, 34.9213)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B52A1 #A17A2B
analogous
#2B8DA1 #2B52A1 #3F2BA1
triadic
#2B52A1 #A12B52 #52A12B
tetradic
#2B52A1 #A12B8D #A17A2B #2BA13F
square
#2B52A1 #A12B8D #A17A2B #2BA13F
split-complementary
#2B52A1 #A13F2B #8DA12B
monochromatic
#112140 #1E3971 #2B52A1 #3E6DCB #6E91D8

Accessibility & contrast

On white

7.44
#2B52A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2B52A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B52A1
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B52A1#FFFFFF#000000##FFFFFF
##2B52A11.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA4
Deuteranopia (green-blind)
#01509F
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2b52a1;
/* rgb */ color: rgb(43, 82, 161);
/* oklch */ color: oklch(45.5% 0.136 262.5);
Tailwind
colors: {
  custom: {
    50: '#7482bd',
    500: '#2b52a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b52a1;
$custom-light: #7482bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b52a1",
  "rgb": {
    "r": 43,
    "g": 82,
    "b": 161
  },
  "hsl": {
    "h": 220.169,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.45499,
    "c": 0.13569,
    "h": 262.5
  },
  "luminance": 0.09121
}

Semantic roles & 50–950 ramp

primary
#2B52A1
secondary
#BFA369
accent
#AE47E1
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2B52A1

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

Preview Lab → · Contrast checker → · Palette generator →

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