#2840AC#2840AC

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

Color values

HEX#2840AC
RGBrgb(40, 64, 172)
HSLhsl(229, 62%, 42%)
HSVhsv(229, 77%, 67%)
CMYKcmyk(76.7%, 62.8%, 0%, 32.5%)
CIE-LABlab(32.02, 30.24, -60.27)
CIE-LCHlch(32.02, 67.43, 296.64°)
OKLaboklab(42.57% -0.0056 -0.1742)
OKLCHoklch(42.57% 0.174 268.2)
XYZxyz(10.1523, 7.0953, 39.8562)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840AC #AC9428
analogous
#2882AC #2840AC #5228AC
triadic
#2840AC #AC2840 #40AC28
tetradic
#2840AC #AC2882 #AC9428 #28AC52
square
#2840AC #AC2882 #AC9428 #28AC52
split-complementary
#2840AC #AC5228 #82AC28
monochromatic
#111B49 #1C2E7A #2840AC #3F5AD2 #7184DE

Accessibility & contrast

On white

8.68
#2840AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2840AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840AC
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840AC#FFFFFF#000000##FFFFFF
##2840AC1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0045AA
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2840ac;
/* rgb */ color: rgb(40, 64, 172);
/* oklch */ color: oklch(42.6% 0.174 268.2);
Tailwind
colors: {
  custom: {
    50: '#7774c6',
    500: '#2840ac',
    950: '#000000',
  },
}
SCSS
$custom: #2840ac;
$custom-light: #7774c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2840ac",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 229.091,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42572,
    "c": 0.17433,
    "h": 268.2
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#2840AC
secondary
#C5B46B
accent
#C842E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2840AC

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

Preview Lab → · Contrast checker → · Palette generator →

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