#2840A3#2840A3

#2840A3 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.162 H 268.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#2840A3
RGBrgb(40, 64, 163)
HSLhsl(228, 61%, 40%)
HSVhsv(228, 75%, 64%)
CMYKcmyk(75.5%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.26, 26.85, -56.12)
CIE-LCHlch(31.26, 62.21, 295.57°)
OKLaboklab(41.77% -0.0055 -0.1621)
OKLCHoklch(41.77% 0.162 268)
XYZxyz(9.3170, 6.7612, 35.4572)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840A3 #A38B28
analogous
#287DA3 #2840A3 #4E28A3
triadic
#2840A3 #A32840 #40A328
tetradic
#2840A3 #A3287D #A38B28 #28A34E
square
#2840A3 #A3287D #A38B28 #28A34E
split-complementary
#2840A3 #A34E28 #7DA328
monochromatic
#101941 #1C2D72 #2840A3 #3A57CF #6B81DB

Accessibility & contrast

On white

8.93
#2840A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2840A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840A3
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840A3#FFFFFF#000000##FFFFFF
##2840A31.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2840a3;
/* rgb */ color: rgb(40, 64, 163);
/* oklch */ color: oklch(41.8% 0.162 268.0);
Tailwind
colors: {
  custom: {
    50: '#7574bf',
    500: '#2840a3',
    950: '#000000',
  },
}
SCSS
$custom: #2840a3;
$custom-light: #7574bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2840a3",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 228.293,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41766,
    "c": 0.16216,
    "h": 268
  },
  "luminance": 0.06762
}

Semantic roles & 50–950 ramp

primary
#2840A3
secondary
#C1AF66
accent
#C544E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2840A3

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

Preview Lab → · Contrast checker → · Palette generator →

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