#2840A6#2840A6

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

Color values

HEX#2840A6
RGBrgb(40, 64, 166)
HSLhsl(229, 61%, 40%)
HSVhsv(229, 76%, 65%)
CMYKcmyk(75.9%, 61.4%, 0%, 34.9%)
CIE-LABlab(31.51, 27.98, -57.51)
CIE-LCHlch(31.51, 63.96, 295.94°)
OKLaboklab(42.03% -0.0055 -0.1662)
OKLCHoklch(42.03% 0.166 268.1)
XYZxyz(9.5890, 6.8700, 36.8897)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840A6 #A68E28
analogous
#287FA6 #2840A6 #4F28A6
triadic
#2840A6 #A62840 #40A628
tetradic
#2840A6 #A6287F #A68E28 #28A64F
square
#2840A6 #A6287F #A68E28 #28A64F
split-complementary
#2840A6 #A64F28 #7FA628
monochromatic
#101A43 #1C2D75 #2840A6 #3B58D0 #6D82DC

Accessibility & contrast

On white

8.85
#2840A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2840A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840A6
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840A6#FFFFFF#000000##FFFFFF
##2840A61.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2840a6;
/* rgb */ color: rgb(40, 64, 166);
/* oklch */ color: oklch(42.0% 0.166 268.1);
Tailwind
colors: {
  custom: {
    50: '#7574c1',
    500: '#2840a6',
    950: '#000000',
  },
}
SCSS
$custom: #2840a6;
$custom-light: #7574c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2840a6",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 228.571,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42032,
    "c": 0.16625,
    "h": 268.1
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

primary
#2840A6
secondary
#C2B167
accent
#C644E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2840A6

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

Preview Lab → · Contrast checker → · Palette generator →

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