#2852B5#2852B5

#2852B5 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.164 H 263.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2852B5
RGBrgb(40, 82, 181)
HSLhsl(222, 64%, 43%)
HSVhsv(222, 78%, 71%)
CMYKcmyk(77.9%, 54.7%, 0%, 29%)
CIE-LABlab(37.52, 21.74, -56.66)
CIE-LCHlch(37.52, 60.68, 290.99°)
OKLaboklab(46.91% -0.0176 -0.1634)
OKLCHoklch(46.91% 0.164 263.8)
XYZxyz(12.2299, 9.8205, 44.9581)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852B5 #B58B28
analogous
#2898B5 #2852B5 #4528B5
triadic
#2852B5 #B52852 #52B528
tetradic
#2852B5 #B52898 #B58B28 #28B545
square
#2852B5 #B52898 #B58B28 #28B545
split-complementary
#2852B5 #B54528 #98B528
monochromatic
#122551 #1D3B83 #2852B5 #4470D6 #7796E1

Accessibility & contrast

On white

7.08
#2852B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2852B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852B5
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852B5#FFFFFF#000000##FFFFFF
##2852B51.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2852b5;
/* rgb */ color: rgb(40, 82, 181);
/* oklch */ color: oklch(46.9% 0.164 263.8);
Tailwind
colors: {
  custom: {
    50: '#7882cc',
    500: '#2852b5',
    950: '#000000',
  },
}
SCSS
$custom: #2852b5;
$custom-light: #7882cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2852b5",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 181
  },
  "hsl": {
    "h": 222.128,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4691,
    "c": 0.16432,
    "h": 263.8
  },
  "luminance": 0.09822
}

Semantic roles & 50–950 ramp

primary
#2852B5
secondary
#C8AE70
accent
#B541E7
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2852B5

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

Preview Lab → · Contrast checker → · Palette generator →

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