#2841A3#2841A3

#2841A3 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.161 H 267.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2841A3
RGBrgb(40, 65, 163)
HSLhsl(228, 61%, 40%)
HSVhsv(228, 75%, 64%)
CMYKcmyk(75.5%, 60.1%, 0%, 36.1%)
CIE-LABlab(31.52, 26.18, -55.69)
CIE-LCHlch(31.52, 61.54, 295.18°)
OKLaboklab(41.96% -0.0062 -0.1608)
OKLCHoklch(41.96% 0.161 267.8)
XYZxyz(9.3739, 6.8750, 35.4762)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841A3 #A38A28
analogous
#287EA3 #2841A3 #4D28A3
triadic
#2841A3 #A32841 #41A328
tetradic
#2841A3 #A3287E #A38A28 #28A34D
square
#2841A3 #A3287E #A38A28 #28A34D
split-complementary
#2841A3 #A34D28 #7EA328
monochromatic
#101A41 #1C2D72 #2841A3 #3A58CF #6B82DB

Accessibility & contrast

On white

8.84
#2841A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2841A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841A3
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841A3#FFFFFF#000000##FFFFFF
##2841A31.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2841a3;
/* rgb */ color: rgb(40, 65, 163);
/* oklch */ color: oklch(42.0% 0.161 267.8);
Tailwind
colors: {
  custom: {
    50: '#7575bf',
    500: '#2841a3',
    950: '#000000',
  },
}
SCSS
$custom: #2841a3;
$custom-light: #7575bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2841a3",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 163
  },
  "hsl": {
    "h": 227.805,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41962,
    "c": 0.16092,
    "h": 267.8
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#2841A3
secondary
#C1AE66
accent
#C344E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2841A3

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

Preview Lab → · Contrast checker → · Palette generator →

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