#2852D1#2852D1

#2852D1 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 49.3% C 0.201 H 265.3°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#2852D1
RGBrgb(40, 82, 209)
HSLhsl(225, 68%, 49%)
HSVhsv(225, 81%, 82%)
CMYKcmyk(80.9%, 60.8%, 0%, 18%)
CIE-LABlab(39.73, 32.36, -69.37)
CIE-LCHlch(39.73, 76.54, 295.01°)
OKLaboklab(49.26% -0.0164 -0.2007)
OKLCHoklch(49.26% 0.201 265.3)
XYZxyz(15.3969, 11.0873, 61.6378)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852D1 #D1A728
analogous
#28A7D1 #2852D1 #5328D1
triadic
#2852D1 #D12852 #52D128
tetradic
#2852D1 #D128A7 #D1A728 #28D153
square
#2852D1 #D128A7 #D1A728 #28D153
split-complementary
#2852D1 #D15328 #A7D128
monochromatic
#142A6A #1E3E9E #2852D1 #5779DF #8BA2E9

Accessibility & contrast

On white

6.53
#2852D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2852D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2852D1
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852D1#FFFFFF#000000##FFFFFF
##2852D11.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#00738A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2852d1;
/* rgb */ color: rgb(40, 82, 209);
/* oklch */ color: oklch(49.3% 0.201 265.3);
Tailwind
colors: {
  custom: {
    50: '#7f82e0',
    500: '#2852d1',
    950: '#000000',
  },
}
SCSS
$custom: #2852d1;
$custom-light: #7f82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#2852d1",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 209
  },
  "hsl": {
    "h": 225.089,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49257,
    "c": 0.20135,
    "h": 265.3
  },
  "luminance": 0.11089
}

Semantic roles & 50–950 ramp

primary
#2852D1
secondary
#D3BF82
accent
#C03DEB
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #2852D1

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

Preview Lab → · Contrast checker → · Palette generator →

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