#2840A9#2840A9

#2840A9 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.170 H 268.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#2840A9
RGBrgb(40, 64, 169)
HSLhsl(229, 62%, 41%)
HSVhsv(229, 76%, 66%)
CMYKcmyk(76.3%, 62.1%, 0%, 33.7%)
CIE-LABlab(31.76, 29.11, -58.90)
CIE-LCHlch(31.76, 65.70, 296.30°)
OKLaboklab(42.3% -0.0055 -0.1702)
OKLCHoklch(42.3% 0.17 268.1)
XYZxyz(9.8674, 6.9814, 38.3559)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840A9 #A99128
analogous
#2880A9 #2840A9 #5028A9
triadic
#2840A9 #A92840 #40A928
tetradic
#2840A9 #A92880 #A99128 #28A950
square
#2840A9 #A92880 #A99128 #28A950
split-complementary
#2840A9 #A95028 #80A928
monochromatic
#111B46 #1C2D78 #2840A9 #3D59D1 #6F83DD

Accessibility & contrast

On white

8.76
#2840A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2840A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840A9
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840A9#FFFFFF#000000##FFFFFF
##2840A91.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2840a9;
/* rgb */ color: rgb(40, 64, 169);
/* oklch */ color: oklch(42.3% 0.170 268.1);
Tailwind
colors: {
  custom: {
    50: '#7674c3',
    500: '#2840a9',
    950: '#000000',
  },
}
SCSS
$custom: #2840a9;
$custom-light: #7674c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2840a9",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 228.837,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.423,
    "c": 0.17031,
    "h": 268.1
  },
  "luminance": 0.06982
}

Semantic roles & 50–950 ramp

primary
#2840A9
secondary
#C4B369
accent
#C743E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2840A9

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

Preview Lab → · Contrast checker → · Palette generator →

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