#2841AE#2841AE

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

Color values

HEX#2841AE
RGBrgb(40, 65, 174)
HSLhsl(229, 63%, 42%)
HSVhsv(229, 77%, 68%)
CMYKcmyk(77%, 62.6%, 0%, 31.8%)
CIE-LABlab(32.45, 30.33, -60.76)
CIE-LCHlch(32.45, 67.91, 296.53°)
OKLaboklab(42.94% -0.0063 -0.1757)
OKLCHoklch(42.94% 0.176 268)
XYZxyz(10.4027, 7.2865, 40.8944)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841AE #AE9528
analogous
#2884AE #2841AE #5228AE
triadic
#2841AE #AE2841 #41AE28
tetradic
#2841AE #AE2884 #AE9528 #28AE52
square
#2841AE #AE2884 #AE9528 #28AE52
split-complementary
#2841AE #AE5228 #84AE28
monochromatic
#111C4A #1D2E7C #2841AE #405CD3 #7286DF

Accessibility & contrast

On white

8.54
#2841AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2841AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841AE
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841AE#FFFFFF#000000##FFFFFF
##2841AE1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2841ae;
/* rgb */ color: rgb(40, 65, 174);
/* oklch */ color: oklch(42.9% 0.176 268.0);
Tailwind
colors: {
  custom: {
    50: '#7775c7',
    500: '#2841ae',
    950: '#000000',
  },
}
SCSS
$custom: #2841ae;
$custom-light: #7775c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2841ae",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 174
  },
  "hsl": {
    "h": 228.806,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42941,
    "c": 0.17579,
    "h": 268
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2841AE

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

Preview Lab → · Contrast checker → · Palette generator →

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