#2840AA#2840AA

#2840AA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.172 H 268.1°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#2840AA
RGBrgb(40, 64, 170)
HSLhsl(229, 62%, 41%)
HSVhsv(229, 76%, 67%)
CMYKcmyk(76.5%, 62.4%, 0%, 33.3%)
CIE-LABlab(31.85, 29.49, -59.36)
CIE-LCHlch(31.85, 66.28, 296.42°)
OKLaboklab(42.39% -0.0055 -0.1716)
OKLCHoklch(42.39% 0.172 268.1)
XYZxyz(9.9617, 7.0191, 38.8522)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840AA #AA9228
analogous
#2881AA #2840AA #5128AA
triadic
#2840AA #AA2840 #40AA28
tetradic
#2840AA #AA2881 #AA9228 #28AA51
square
#2840AA #AA2881 #AA9228 #28AA51
split-complementary
#2840AA #AA5128 #81AA28
monochromatic
#111B47 #1C2D78 #2840AA #3E59D2 #6F84DD

Accessibility & contrast

On white

8.74
#2840AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2840AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2840AA#FFFFFF#000000##FFFFFF
##2840AA1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2840aa;
/* rgb */ color: rgb(40, 64, 170);
/* oklch */ color: oklch(42.4% 0.172 268.1);
Tailwind
colors: {
  custom: {
    50: '#7674c4',
    500: '#2840aa',
    950: '#000000',
  },
}
SCSS
$custom: #2840aa;
$custom-light: #7674c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2840aa",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 228.923,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42391,
    "c": 0.17165,
    "h": 268.1
  },
  "luminance": 0.0702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2840AA

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

Preview Lab → · Contrast checker → · Palette generator →

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