#2841A5#2841A5

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

Color values

HEX#2841A5
RGBrgb(40, 65, 165)
HSLhsl(228, 61%, 40%)
HSVhsv(228, 76%, 65%)
CMYKcmyk(75.8%, 60.6%, 0%, 35.3%)
CIE-LABlab(31.69, 26.94, -56.62)
CIE-LCHlch(31.69, 62.70, 295.44°)
OKLaboklab(42.14% -0.0062 -0.1635)
OKLCHoklch(42.14% 0.164 267.8)
XYZxyz(9.5545, 6.9473, 36.4274)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841A5 #A58C28
analogous
#287FA5 #2841A5 #4D28A5
triadic
#2841A5 #A52841 #41A528
tetradic
#2841A5 #A5287F #A58C28 #28A54D
square
#2841A5 #A5287F #A58C28 #28A54D
split-complementary
#2841A5 #A54D28 #7FA528
monochromatic
#101A42 #1C2E74 #2841A5 #3B59CF #6C82DB

Accessibility & contrast

On white

8.79
#2841A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2841A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841A5
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841A5#FFFFFF#000000##FFFFFF
##2841A51.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2841a5;
/* rgb */ color: rgb(40, 65, 165);
/* oklch */ color: oklch(42.1% 0.164 267.8);
Tailwind
colors: {
  custom: {
    50: '#7575c1',
    500: '#2841a5',
    950: '#000000',
  },
}
SCSS
$custom: #2841a5;
$custom-light: #7575c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2841a5",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 228,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42138,
    "c": 0.16366,
    "h": 267.8
  },
  "luminance": 0.06948
}

Semantic roles & 50–950 ramp

primary
#2841A5
secondary
#C2B067
accent
#C444E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2841A5

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

Preview Lab → · Contrast checker → · Palette generator →

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