#2852A8#2852A8

#2852A8 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.9% C 0.146 H 262.5°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#2852A8
RGBrgb(40, 82, 168)
HSLhsl(220, 62%, 41%)
HSVhsv(220, 76%, 66%)
CMYKcmyk(76.2%, 51.2%, 0%, 34.1%)
CIE-LABlab(36.58, 16.72, -50.48)
CIE-LCHlch(36.58, 53.18, 288.33°)
OKLaboklab(45.9% -0.019 -0.1452)
OKLCHoklch(45.9% 0.146 262.5)
XYZxyz(10.9577, 9.3116, 38.2580)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852A8 #A87E28
analogous
#2892A8 #2852A8 #3E28A8
triadic
#2852A8 #A82852 #52A828
tetradic
#2852A8 #A82892 #A87E28 #28A83E
square
#2852A8 #A82892 #A87E28 #28A83E
split-complementary
#2852A8 #A83E28 #92A828
monochromatic
#102245 #1C3A77 #2852A8 #3D6DD1 #6E92DC

Accessibility & contrast

On white

7.34
#2852A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2852A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852A8
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852A8#FFFFFF#000000##FFFFFF
##2852A81.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5CAB
Deuteranopia (green-blind)
#0051A6
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2852a8;
/* rgb */ color: rgb(40, 82, 168);
/* oklch */ color: oklch(45.9% 0.146 262.5);
Tailwind
colors: {
  custom: {
    50: '#7582c2',
    500: '#2852a8',
    950: '#000000',
  },
}
SCSS
$custom: #2852a8;
$custom-light: #7582c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2852a8",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 168
  },
  "hsl": {
    "h": 220.313,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45897,
    "c": 0.14643,
    "h": 262.5
  },
  "luminance": 0.09313
}

Semantic roles & 50–950 ramp

primary
#2852A8
secondary
#C3A569
accent
#B043E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2852A8

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

Preview Lab → · Contrast checker → · Palette generator →

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