#2841A4#2841A4

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

Color values

HEX#2841A4
RGBrgb(40, 65, 164)
HSLhsl(228, 61%, 40%)
HSVhsv(228, 76%, 64%)
CMYKcmyk(75.6%, 60.4%, 0%, 35.7%)
CIE-LABlab(31.60, 26.56, -56.16)
CIE-LCHlch(31.60, 62.12, 295.31°)
OKLaboklab(42.05% -0.0062 -0.1622)
OKLCHoklch(42.05% 0.162 267.8)
XYZxyz(9.4639, 6.9110, 35.9500)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841A4 #A48B28
analogous
#287FA4 #2841A4 #4D28A4
triadic
#2841A4 #A42841 #41A428
tetradic
#2841A4 #A4287F #A48B28 #28A44D
square
#2841A4 #A4287F #A48B28 #28A44D
split-complementary
#2841A4 #A44D28 #7FA428
monochromatic
#101A42 #1C2E73 #2841A4 #3A58CF #6B82DB

Accessibility & contrast

On white

8.81
#2841A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2841A4
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841A4#FFFFFF#000000##FFFFFF
##2841A41.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2841a4;
/* rgb */ color: rgb(40, 65, 164);
/* oklch */ color: oklch(42.0% 0.162 267.8);
Tailwind
colors: {
  custom: {
    50: '#7575c0',
    500: '#2841a4',
    950: '#000000',
  },
}
SCSS
$custom: #2841a4;
$custom-light: #7575c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2841a4",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 164
  },
  "hsl": {
    "h": 227.903,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.4205,
    "c": 0.16229,
    "h": 267.8
  },
  "luminance": 0.06912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2841A4

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

Preview Lab → · Contrast checker → · Palette generator →

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