#2852A4#2852A4

#2852A4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.141 H 262.0°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#2852A4
RGBrgb(40, 82, 164)
HSLhsl(220, 61%, 40%)
HSVhsv(220, 76%, 64%)
CMYKcmyk(75.6%, 50%, 0%, 35.7%)
CIE-LABlab(36.30, 15.17, -48.54)
CIE-LCHlch(36.30, 50.86, 287.36°)
OKLaboklab(45.6% -0.0195 -0.1395)
OKLCHoklch(45.6% 0.141 262)
XYZxyz(10.5908, 9.1649, 36.3256)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852A4 #A47A28
analogous
#2890A4 #2852A4 #3C28A4
triadic
#2852A4 #A42852 #52A428
tetradic
#2852A4 #A42890 #A47A28 #28A43C
square
#2852A4 #A42890 #A47A28 #28A43C
split-complementary
#2852A4 #A43C28 #90A428
monochromatic
#102142 #1C3973 #2852A4 #3A6DCF #6B91DB

Accessibility & contrast

On white

7.41
#2852A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2852A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852A4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852A4#FFFFFF#000000##FFFFFF
##2852A41.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225BA7
Deuteranopia (green-blind)
#0050A2
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2852a4;
/* rgb */ color: rgb(40, 82, 164);
/* oklch */ color: oklch(45.6% 0.141 262.0);
Tailwind
colors: {
  custom: {
    50: '#7482bf',
    500: '#2852a4',
    950: '#000000',
  },
}
SCSS
$custom: #2852a4;
$custom-light: #7482bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2852a4",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 219.677,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.45596,
    "c": 0.14085,
    "h": 262
  },
  "luminance": 0.09166
}

Semantic roles & 50–950 ramp

primary
#2852A4
secondary
#C1A366
accent
#AE44E4
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2852A4

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

Preview Lab → · Contrast checker → · Palette generator →

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