#2841A9#2841A9

#2841A9 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.169 H 267.9°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2841A9
RGBrgb(40, 65, 169)
HSLhsl(228, 62%, 41%)
HSVhsv(228, 76%, 66%)
CMYKcmyk(76.3%, 61.5%, 0%, 33.7%)
CIE-LABlab(32.02, 28.45, -58.48)
CIE-LCHlch(32.02, 65.03, 295.95°)
OKLaboklab(42.49% -0.0062 -0.169)
OKLCHoklch(42.49% 0.169 267.9)
XYZxyz(9.9243, 7.0952, 38.3749)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841A9 #A99028
analogous
#2881A9 #2841A9 #4F28A9
triadic
#2841A9 #A92841 #41A928
tetradic
#2841A9 #A92881 #A99028 #28A94F
square
#2841A9 #A92881 #A99028 #28A94F
split-complementary
#2841A9 #A94F28 #81A928
monochromatic
#111B46 #1C2E78 #2841A9 #3D5AD1 #6F84DD

Accessibility & contrast

On white

8.68
#2841A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2841A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841A9
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841A9#FFFFFF#000000##FFFFFF
##2841A91.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2841a9;
/* rgb */ color: rgb(40, 65, 169);
/* oklch */ color: oklch(42.5% 0.169 267.9);
Tailwind
colors: {
  custom: {
    50: '#7675c3',
    500: '#2841a9',
    950: '#000000',
  },
}
SCSS
$custom: #2841a9;
$custom-light: #7675c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2841a9",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 169
  },
  "hsl": {
    "h": 228.372,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42492,
    "c": 0.16908,
    "h": 267.9
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#2841A9
secondary
#C4B269
accent
#C543E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2841A9

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

Preview Lab → · Contrast checker → · Palette generator →

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