#2852B3#2852B3

#2852B3 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.162 H 263.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2852B3
RGBrgb(40, 82, 179)
HSLhsl(222, 63%, 43%)
HSVhsv(222, 78%, 70%)
CMYKcmyk(77.7%, 54.2%, 0%, 29.8%)
CIE-LABlab(37.37, 20.97, -55.72)
CIE-LCHlch(37.37, 59.53, 290.63°)
OKLaboklab(46.75% -0.0178 -0.1606)
OKLCHoklch(46.75% 0.162 263.7)
XYZxyz(12.0261, 9.7390, 43.8851)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2852B3 #B38928
analogous
#2897B3 #2852B3 #4428B3
triadic
#2852B3 #B32852 #52B328
tetradic
#2852B3 #B32897 #B38928 #28B344
square
#2852B3 #B32897 #B38928 #28B344
split-complementary
#2852B3 #B34428 #97B328
monochromatic
#12244F #1D3B81 #2852B3 #436FD5 #7596E0

Accessibility & contrast

On white

7.12
#2852B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2852B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2852B3
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2852B3#FFFFFF#000000##FFFFFF
##2852B31.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2852b3;
/* rgb */ color: rgb(40, 82, 179);
/* oklch */ color: oklch(46.8% 0.162 263.7);
Tailwind
colors: {
  custom: {
    50: '#7782ca',
    500: '#2852b3',
    950: '#000000',
  },
}
SCSS
$custom: #2852b3;
$custom-light: #7782ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2852b3",
  "rgb": {
    "r": 40,
    "g": 82,
    "b": 179
  },
  "hsl": {
    "h": 221.871,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46751,
    "c": 0.1616,
    "h": 263.7
  },
  "luminance": 0.0974
}

Semantic roles & 50–950 ramp

primary
#2852B3
secondary
#C8AD6F
accent
#B541E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2852B3

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

Preview Lab → · Contrast checker → · Palette generator →

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