#2841A2#2841A2

#2841A2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.9% C 0.160 H 267.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2841A2
RGBrgb(40, 65, 162)
HSLhsl(228, 60%, 40%)
HSVhsv(228, 75%, 64%)
CMYKcmyk(75.3%, 59.9%, 0%, 36.5%)
CIE-LABlab(31.44, 25.80, -55.22)
CIE-LCHlch(31.44, 60.95, 295.04°)
OKLaboklab(41.88% -0.0063 -0.1594)
OKLCHoklch(41.88% 0.16 267.8)
XYZxyz(9.2847, 6.8393, 35.0062)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841A2 #A28928
analogous
#287EA2 #2841A2 #4C28A2
triadic
#2841A2 #A22841 #41A228
tetradic
#2841A2 #A2287E #A28928 #28A24C
square
#2841A2 #A2287E #A28928 #28A24C
split-complementary
#2841A2 #A24C28 #7EA228
monochromatic
#101A40 #1C2D71 #2841A2 #3958CE #6A81DA

Accessibility & contrast

On white

8.87
#2841A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2841A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841A2
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841A2#FFFFFF#000000##FFFFFF
##2841A21.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2841a2;
/* rgb */ color: rgb(40, 65, 162);
/* oklch */ color: oklch(41.9% 0.160 267.8);
Tailwind
colors: {
  custom: {
    50: '#7475be',
    500: '#2841a2',
    950: '#000000',
  },
}
SCSS
$custom: #2841a2;
$custom-light: #7475be;
$custom-dark: #000000;
JSON
{
  "hex": "#2841a2",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 227.705,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41875,
    "c": 0.15954,
    "h": 267.8
  },
  "luminance": 0.0684
}

Semantic roles & 50–950 ramp

primary
#2841A2
secondary
#C1AE65
accent
#C344E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2841A2

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

Preview Lab → · Contrast checker → · Palette generator →

#2841A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva