#2840A2#2840A2

#2840A2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.161 H 268.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#2840A2
RGBrgb(40, 64, 162)
HSLhsl(228, 60%, 40%)
HSVhsv(228, 75%, 64%)
CMYKcmyk(75.3%, 60.5%, 0%, 36.5%)
CIE-LABlab(31.17, 26.47, -55.65)
CIE-LCHlch(31.17, 61.63, 295.44°)
OKLaboklab(41.68% -0.0055 -0.1607)
OKLCHoklch(41.68% 0.161 268)
XYZxyz(9.2278, 6.7255, 34.9872)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840A2 #A28A28
analogous
#287DA2 #2840A2 #4D28A2
triadic
#2840A2 #A22840 #40A228
tetradic
#2840A2 #A2287D #A28A28 #28A24D
square
#2840A2 #A2287D #A28A28 #28A24D
split-complementary
#2840A2 #A24D28 #7DA228
monochromatic
#101940 #1C2D71 #2840A2 #3956CE #6A80DA

Accessibility & contrast

On white

8.95
#2840A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2840A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840A2
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840A2#FFFFFF#000000##FFFFFF
##2840A21.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2840a2;
/* rgb */ color: rgb(40, 64, 162);
/* oklch */ color: oklch(41.7% 0.161 268.0);
Tailwind
colors: {
  custom: {
    50: '#7474be',
    500: '#2840a2',
    950: '#000000',
  },
}
SCSS
$custom: #2840a2;
$custom-light: #7474be;
$custom-dark: #000000;
JSON
{
  "hex": "#2840a2",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 228.197,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41678,
    "c": 0.1608,
    "h": 268
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#2840A2
secondary
#C1AF65
accent
#C444E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2840A2

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

Preview Lab → · Contrast checker → · Palette generator →

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