#2852A2#2852A2

#2852A2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.4% C 0.138 H 261.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#2852A2
RGBrgb(40, 82, 162)
HSLhsl(219, 60%, 40%)
HSVhsv(219, 75%, 64%)
CMYKcmyk(75.3%, 49.4%, 0%, 36.5%)
CIE-LABlab(36.16, 14.40, -47.56)
CIE-LCHlch(36.16, 49.70, 286.84°)
OKLaboklab(45.45% -0.0198 -0.1366)
OKLCHoklch(45.45% 0.138 261.8)
XYZxyz(10.4116, 9.0932, 35.3819)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852A2 #A27828
analogous
#288FA2 #2852A2 #3B28A2
triadic
#2852A2 #A22852 #52A228
tetradic
#2852A2 #A2288F #A27828 #28A23B
square
#2852A2 #A2288F #A27828 #28A23B
split-complementary
#2852A2 #A23B28 #8FA228
monochromatic
#102040 #1C3971 #2852A2 #396CCE #6A91DA

Accessibility & contrast

On white

7.45
#2852A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2852A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852A2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852A2#FFFFFF#000000##FFFFFF
##2852A21.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245BA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2852a2;
/* rgb */ color: rgb(40, 82, 162);
/* oklch */ color: oklch(45.4% 0.138 261.8);
Tailwind
colors: {
  custom: {
    50: '#7382be',
    500: '#2852a2',
    950: '#000000',
  },
}
SCSS
$custom: #2852a2;
$custom-light: #7382be;
$custom-dark: #000000;
JSON
{
  "hex": "#2852a2",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 219.344,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45448,
    "c": 0.13804,
    "h": 261.8
  },
  "luminance": 0.09094
}

Semantic roles & 50–950 ramp

primary
#2852A2
secondary
#C1A165
accent
#AD44E4
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2852A2

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

Preview Lab → · Contrast checker → · Palette generator →

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