#2840AB#2840AB

#2840AB is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.173 H 268.2°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2840AB
RGBrgb(40, 64, 171)
HSLhsl(229, 62%, 41%)
HSVhsv(229, 77%, 67%)
CMYKcmyk(76.6%, 62.6%, 0%, 32.9%)
CIE-LABlab(31.94, 29.86, -59.81)
CIE-LCHlch(31.94, 66.85, 296.53°)
OKLaboklab(42.48% -0.0056 -0.1729)
OKLCHoklch(42.48% 0.173 268.2)
XYZxyz(10.0566, 7.0571, 39.3523)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840AB #AB9328
analogous
#2882AB #2840AB #5228AB
triadic
#2840AB #AB2840 #40AB28
tetradic
#2840AB #AB2882 #AB9328 #28AB52
square
#2840AB #AB2882 #AB9328 #28AB52
split-complementary
#2840AB #AB5228 #82AB28
monochromatic
#111B48 #1C2D79 #2840AB #3E59D2 #7084DE

Accessibility & contrast

On white

8.71
#2840AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2840AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840AB
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840AB#FFFFFF#000000##FFFFFF
##2840AB1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2840ab;
/* rgb */ color: rgb(40, 64, 171);
/* oklch */ color: oklch(42.5% 0.173 268.2);
Tailwind
colors: {
  custom: {
    50: '#7774c5',
    500: '#2840ab',
    950: '#000000',
  },
}
SCSS
$custom: #2840ab;
$custom-light: #7774c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2840ab",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 229.008,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42481,
    "c": 0.173,
    "h": 268.2
  },
  "luminance": 0.07058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2840AB

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

Preview Lab → · Contrast checker → · Palette generator →

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