#2852B2#2852B2

#2852B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.160 H 263.6°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2852B2
RGBrgb(40, 82, 178)
HSLhsl(222, 63%, 43%)
HSVhsv(222, 78%, 70%)
CMYKcmyk(77.5%, 53.9%, 0%, 30.2%)
CIE-LABlab(37.30, 20.59, -55.25)
CIE-LCHlch(37.30, 58.96, 290.44°)
OKLaboklab(46.67% -0.0179 -0.1592)
OKLCHoklch(46.67% 0.16 263.6)
XYZxyz(11.9254, 9.6987, 43.3544)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852B2 #B28828
analogous
#2897B2 #2852B2 #4328B2
triadic
#2852B2 #B22852 #52B228
tetradic
#2852B2 #B22897 #B28828 #28B243
square
#2852B2 #B22897 #B28828 #28B243
split-complementary
#2852B2 #B24328 #97B228
monochromatic
#12244E #1D3B80 #2852B2 #436FD5 #7595E0

Accessibility & contrast

On white

7.14
#2852B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2852B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852B2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852B2#FFFFFF#000000##FFFFFF
##2852B21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2852b2;
/* rgb */ color: rgb(40, 82, 178);
/* oklch */ color: oklch(46.7% 0.160 263.6);
Tailwind
colors: {
  custom: {
    50: '#7782ca',
    500: '#2852b2',
    950: '#000000',
  },
}
SCSS
$custom: #2852b2;
$custom-light: #7782ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2852b2",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 221.739,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46671,
    "c": 0.16022,
    "h": 263.6
  },
  "luminance": 0.097
}

Semantic roles & 50–950 ramp

primary
#2852B2
secondary
#C7AC6F
accent
#B441E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2852B2

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

Preview Lab → · Contrast checker → · Palette generator →

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