#2840A8#2840A8

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

Color values

HEX#2840A8
RGBrgb(40, 64, 168)
HSLhsl(229, 62%, 41%)
HSVhsv(229, 76%, 66%)
CMYKcmyk(76.2%, 61.9%, 0%, 34.1%)
CIE-LABlab(31.68, 28.74, -58.44)
CIE-LCHlch(31.68, 65.12, 296.19°)
OKLaboklab(42.21% -0.0055 -0.1689)
OKLCHoklch(42.21% 0.169 268.1)
XYZxyz(9.7739, 6.9440, 37.8634)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840A8 #A89028
analogous
#2880A8 #2840A8 #5028A8
triadic
#2840A8 #A82840 #40A828
tetradic
#2840A8 #A82880 #A89028 #28A850
square
#2840A8 #A82880 #A89028 #28A850
split-complementary
#2840A8 #A85028 #80A828
monochromatic
#101A45 #1C2D77 #2840A8 #3D58D1 #6E83DC

Accessibility & contrast

On white

8.79
#2840A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2840A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840A8
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840A8#FFFFFF#000000##FFFFFF
##2840A81.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2840a8;
/* rgb */ color: rgb(40, 64, 168);
/* oklch */ color: oklch(42.2% 0.169 268.1);
Tailwind
colors: {
  custom: {
    50: '#7674c3',
    500: '#2840a8',
    950: '#000000',
  },
}
SCSS
$custom: #2840a8;
$custom-light: #7674c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2840a8",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 228.75,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.16896,
    "h": 268.1
  },
  "luminance": 0.06945
}

Semantic roles & 50–950 ramp

primary
#2840A8
secondary
#C3B269
accent
#C643E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2840A8

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

Preview Lab → · Contrast checker → · Palette generator →

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