#2852A1#2852A1

#2852A1 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.4% C 0.137 H 261.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2852A1
RGBrgb(40, 82, 161)
HSLhsl(219, 60%, 39%)
HSVhsv(219, 75%, 63%)
CMYKcmyk(75.2%, 49.1%, 0%, 36.9%)
CIE-LABlab(36.10, 14.01, -47.07)
CIE-LCHlch(36.10, 49.11, 286.57°)
OKLaboklab(45.37% -0.0199 -0.1352)
OKLCHoklch(45.37% 0.137 261.6)
XYZxyz(10.3231, 9.0578, 34.9156)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852A1 #A17728
analogous
#288EA1 #2852A1 #3B28A1
triadic
#2852A1 #A12852 #52A128
tetradic
#2852A1 #A1288E #A17728 #28A13B
square
#2852A1 #A1288E #A17728 #28A13B
split-complementary
#2852A1 #A13B28 #8EA128
monochromatic
#10203F #1C3970 #2852A1 #396CCE #6A91DA

Accessibility & contrast

On white

7.47
#2852A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2852A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852A1
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852A1#FFFFFF#000000##FFFFFF
##2852A11.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2852a1;
/* rgb */ color: rgb(40, 82, 161);
/* oklch */ color: oklch(45.4% 0.137 261.6);
Tailwind
colors: {
  custom: {
    50: '#7382bd',
    500: '#2852a1',
    950: '#000000',
  },
}
SCSS
$custom: #2852a1;
$custom-light: #7382bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2852a1",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 161
  },
  "hsl": {
    "h": 219.174,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45374,
    "c": 0.13663,
    "h": 261.6
  },
  "luminance": 0.09059
}

Semantic roles & 50–950 ramp

primary
#2852A1
secondary
#C0A065
accent
#AC44E3
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2852A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2852A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva