#2854E2#2854E2

#2854E2 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.1% C 0.221 H 265.5°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2854E2
RGBrgb(40, 84, 226)
HSLhsl(226, 76%, 52%)
HSVhsv(226, 82%, 89%)
CMYKcmyk(82.3%, 62.8%, 0%, 11.4%)
CIE-LABlab(41.66, 37.36, -75.93)
CIE-LCHlch(41.66, 84.63, 296.20°)
OKLaboklab(51.13% -0.0174 -0.2199)
OKLCHoklch(51.13% 0.221 265.5)
XYZxyz(17.7680, 12.2806, 73.3707)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2854E2 #E2B628
analogous
#28B1E2 #2854E2 #5928E2
triadic
#2854E2 #E22854 #54E228
tetradic
#2854E2 #E228B1 #E2B628 #28E259
square
#2854E2 #E228B1 #E2B628 #28E259
split-complementary
#2854E2 #E25928 #B1E228
monochromatic
#112B7F #183DB4 #2854E2 #5E7FE9 #94AAF1

Accessibility & contrast

On white

6.08
#2854E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2854E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2854E2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2854E2#FFFFFF#000000##FFFFFF
##2854E21.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#005ADF
Tritanopia (blue-blind)
#007A93
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2854e2;
/* rgb */ color: rgb(40, 84, 226);
/* oklch */ color: oklch(51.1% 0.221 265.5);
Tailwind
colors: {
  custom: {
    50: '#8383ec',
    500: '#2854e2',
    950: '#000000',
  },
}
SCSS
$custom: #2854e2;
$custom-light: #8383ec;
$custom-dark: #000000;
JSON
{
  "hex": "#2854e2",
  "rgb": {
    "r": 40,
    "g": 84,
    "b": 226
  },
  "hsl": {
    "h": 225.806,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51131,
    "c": 0.22057,
    "h": 265.5
  },
  "luminance": 0.12283
}

Semantic roles & 50–950 ramp

primary
#2854E2
secondary
#DCC88A
accent
#C635F3
background
#F9F8FE
surface
#F1EFFD
border
#CBCAD5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #2854E2

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

Preview Lab → · Contrast checker → · Palette generator →

#2854E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva