#2852A3#2852A3

#2852A3 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.139 H 261.9°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2852A3
RGBrgb(40, 82, 163)
HSLhsl(220, 61%, 40%)
HSVhsv(220, 75%, 64%)
CMYKcmyk(75.5%, 49.7%, 0%, 36.1%)
CIE-LABlab(36.23, 14.78, -48.05)
CIE-LCHlch(36.23, 50.28, 287.10°)
OKLaboklab(45.52% -0.0197 -0.138)
OKLCHoklch(45.52% 0.139 261.9)
XYZxyz(10.5009, 9.1289, 35.8519)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852A3 #A37928
analogous
#2890A3 #2852A3 #3B28A3
triadic
#2852A3 #A32852 #52A328
tetradic
#2852A3 #A32890 #A37928 #28A33B
square
#2852A3 #A32890 #A37928 #28A33B
split-complementary
#2852A3 #A33B28 #90A328
monochromatic
#102141 #1C3972 #2852A3 #3A6CCF #6B91DB

Accessibility & contrast

On white

7.43
#2852A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2852A3
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852A3#FFFFFF#000000##FFFFFF
##2852A31.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2852a3;
/* rgb */ color: rgb(40, 82, 163);
/* oklch */ color: oklch(45.5% 0.139 261.9);
Tailwind
colors: {
  custom: {
    50: '#7482bf',
    500: '#2852a3',
    950: '#000000',
  },
}
SCSS
$custom: #2852a3;
$custom-light: #7482bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2852a3",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 163
  },
  "hsl": {
    "h": 219.512,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45522,
    "c": 0.13944,
    "h": 261.9
  },
  "luminance": 0.0913
}

Semantic roles & 50–950 ramp

primary
#2852A3
secondary
#C1A266
accent
#AD44E4
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2852A3

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

Preview Lab → · Contrast checker → · Palette generator →

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