#2873EB#2873EB

#2873EB is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.9% C 0.196 H 259.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2873EB
RGBrgb(40, 115, 235)
HSLhsl(217, 83%, 54%)
HSVhsv(217, 83%, 92%)
CMYKcmyk(83%, 51.1%, 0%, 7.8%)
CIE-LABlab(50.34, 21.01, -66.86)
CIE-LCHlch(50.34, 70.08, 287.45°)
OKLaboklab(57.88% -0.0347 -0.1927)
OKLCHoklch(57.88% 0.196 259.8)
XYZxyz(21.9957, 18.7080, 81.0329)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2873EB #EBA028
analogous
#28D5EB #2873EB #3F28EB
triadic
#2873EB #EB2873 #73EB28
tetradic
#2873EB #EB28D5 #EBA028 #28EB3F
square
#2873EB #EB28D5 #EBA028 #28EB3F
split-complementary
#2873EB #EB3F28 #D5EB28
monochromatic
#0D3E8C #1256C4 #2873EB #6097F0 #98BCF5

Accessibility & contrast

On white

4.43
#2873EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#2873EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2873EB
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2873EB#FFFFFF#000000##000000
##2873EB1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F81EF
Deuteranopia (green-blind)
#0070E9
Tritanopia (blue-blind)
#0090A4
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2873eb;
/* rgb */ color: rgb(40, 115, 235);
/* oklch */ color: oklch(57.9% 0.196 259.8);
Tailwind
colors: {
  custom: {
    50: '#839af2',
    500: '#2873eb',
    950: '#000000',
  },
}
SCSS
$custom: #2873eb;
$custom-light: #839af2;
$custom-dark: #000000;
JSON
{
  "hex": "#2873eb",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 235
  },
  "hsl": {
    "h": 216.923,
    "s": 82.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.57882,
    "c": 0.19584,
    "h": 259.8
  },
  "luminance": 0.18711
}

Semantic roles & 50–950 ramp

primary
#2873EB
secondary
#E1C18E
accent
#AB2EF9
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E17
muted
#7E7E85

Preview Lab

Preview with #2873EB

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

Preview Lab → · Contrast checker → · Palette generator →

#2873EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva