#2840A4#2840A4

#2840A4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.164 H 268.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#2840A4
RGBrgb(40, 64, 164)
HSLhsl(228, 61%, 40%)
HSVhsv(228, 76%, 64%)
CMYKcmyk(75.6%, 61%, 0%, 35.7%)
CIE-LABlab(31.34, 27.23, -56.59)
CIE-LCHlch(31.34, 62.80, 295.69°)
OKLaboklab(41.85% -0.0055 -0.1634)
OKLCHoklch(41.85% 0.164 268.1)
XYZxyz(9.4070, 6.7972, 35.9310)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840A4 #A48C28
analogous
#287EA4 #2840A4 #4E28A4
triadic
#2840A4 #A42840 #40A428
tetradic
#2840A4 #A4287E #A48C28 #28A44E
square
#2840A4 #A4287E #A48C28 #28A44E
split-complementary
#2840A4 #A44E28 #7EA428
monochromatic
#101A42 #1C2D73 #2840A4 #3A57CF #6B81DB

Accessibility & contrast

On white

8.90
#2840A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2840A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840A4
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840A4#FFFFFF#000000##FFFFFF
##2840A41.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2840a4;
/* rgb */ color: rgb(40, 64, 164);
/* oklch */ color: oklch(41.9% 0.164 268.1);
Tailwind
colors: {
  custom: {
    50: '#7574c0',
    500: '#2840a4',
    950: '#000000',
  },
}
SCSS
$custom: #2840a4;
$custom-light: #7574c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2840a4",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 228.387,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.41854,
    "c": 0.16353,
    "h": 268.1
  },
  "luminance": 0.06798
}

Semantic roles & 50–950 ramp

primary
#2840A4
secondary
#C1B066
accent
#C544E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2840A4

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

Preview Lab → · Contrast checker → · Palette generator →

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