#2841AD#2841AD

#2841AD is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.174 H 268.0°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2841AD
RGBrgb(40, 65, 173)
HSLhsl(229, 62%, 42%)
HSVhsv(229, 77%, 68%)
CMYKcmyk(76.9%, 62.4%, 0%, 32.2%)
CIE-LABlab(32.36, 29.96, -60.31)
CIE-LCHlch(32.36, 67.34, 296.41°)
OKLaboklab(42.85% -0.0062 -0.1743)
OKLCHoklch(42.85% 0.174 268)
XYZxyz(10.3056, 7.2477, 40.3829)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841AD #AD9428
analogous
#2884AD #2841AD #5228AD
triadic
#2841AD #AD2841 #41AD28
tetradic
#2841AD #AD2884 #AD9428 #28AD52
square
#2841AD #AD2884 #AD9428 #28AD52
split-complementary
#2841AD #AD5228 #84AD28
monochromatic
#111C4A #1D2E7B #2841AD #3F5BD3 #7186DE

Accessibility & contrast

On white

8.57
#2841AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2841AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841AD
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841AD#FFFFFF#000000##FFFFFF
##2841AD1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2841ad;
/* rgb */ color: rgb(40, 65, 173);
/* oklch */ color: oklch(42.9% 0.174 268.0);
Tailwind
colors: {
  custom: {
    50: '#7775c6',
    500: '#2841ad',
    950: '#000000',
  },
}
SCSS
$custom: #2841ad;
$custom-light: #7775c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2841ad",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 173
  },
  "hsl": {
    "h": 228.722,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42851,
    "c": 0.17446,
    "h": 268
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#2841AD
secondary
#C5B46C
accent
#C742E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2841AD

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

Preview Lab → · Contrast checker → · Palette generator →

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