#2840AD#2840AD

#2840AD is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.7% C 0.176 H 268.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2840AD
RGBrgb(40, 64, 173)
HSLhsl(229, 62%, 42%)
HSVhsv(229, 77%, 68%)
CMYKcmyk(76.9%, 63%, 0%, 32.2%)
CIE-LABlab(32.11, 30.61, -60.72)
CIE-LCHlch(32.11, 68.01, 296.75°)
OKLaboklab(42.66% -0.0056 -0.1756)
OKLCHoklch(42.66% 0.176 268.2)
XYZxyz(10.2487, 7.1339, 40.3639)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840AD #AD9528
analogous
#2883AD #2840AD #5328AD
triadic
#2840AD #AD2840 #40AD28
tetradic
#2840AD #AD2883 #AD9528 #28AD53
square
#2840AD #AD2883 #AD9528 #28AD53
split-complementary
#2840AD #AD5328 #83AD28
monochromatic
#111B4A #1D2E7B #2840AD #3F5AD3 #7185DE

Accessibility & contrast

On white

8.65
#2840AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2840AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840AD
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840AD#FFFFFF#000000##FFFFFF
##2840AD1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0045AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2840ad;
/* rgb */ color: rgb(40, 64, 173);
/* oklch */ color: oklch(42.7% 0.176 268.2);
Tailwind
colors: {
  custom: {
    50: '#7774c6',
    500: '#2840ad',
    950: '#000000',
  },
}
SCSS
$custom: #2840ad;
$custom-light: #7774c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2840ad",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 229.173,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42663,
    "c": 0.17567,
    "h": 268.2
  },
  "luminance": 0.07135
}

Semantic roles & 50–950 ramp

primary
#2840AD
secondary
#C5B56C
accent
#C842E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2840AD

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

Preview Lab → · Contrast checker → · Palette generator →

#2840AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva