#2840A7#2840A7

#2840A7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.168 H 268.1°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#2840A7
RGBrgb(40, 64, 167)
HSLhsl(229, 61%, 41%)
HSVhsv(229, 76%, 65%)
CMYKcmyk(76%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.59, 28.36, -57.98)
CIE-LCHlch(31.59, 64.54, 296.07°)
OKLaboklab(42.12% -0.0055 -0.1675)
OKLCHoklch(42.12% 0.168 268.1)
XYZxyz(9.6811, 6.9069, 37.3747)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840A7 #A78F28
analogous
#2880A7 #2840A7 #4F28A7
triadic
#2840A7 #A72840 #40A728
tetradic
#2840A7 #A72880 #A78F28 #28A74F
square
#2840A7 #A72880 #A78F28 #28A74F
split-complementary
#2840A7 #A74F28 #80A728
monochromatic
#101A44 #1C2D76 #2840A7 #3C58D0 #6D82DC

Accessibility & contrast

On white

8.82
#2840A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2840A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840A7
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840A7#FFFFFF#000000##FFFFFF
##2840A71.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2840a7;
/* rgb */ color: rgb(40, 64, 167);
/* oklch */ color: oklch(42.1% 0.168 268.1);
Tailwind
colors: {
  custom: {
    50: '#7674c2',
    500: '#2840a7',
    950: '#000000',
  },
}
SCSS
$custom: #2840a7;
$custom-light: #7674c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2840a7",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 228.661,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42121,
    "c": 0.16761,
    "h": 268.1
  },
  "luminance": 0.06908
}

Semantic roles & 50–950 ramp

primary
#2840A7
secondary
#C3B268
accent
#C643E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2840A7

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

Preview Lab → · Contrast checker → · Palette generator →

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