#2841B1#2841B1

#2841B1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.180 H 268.0°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2841B1
RGBrgb(40, 65, 177)
HSLhsl(229, 63%, 43%)
HSVhsv(229, 77%, 69%)
CMYKcmyk(77.4%, 63.3%, 0%, 30.6%)
CIE-LABlab(32.71, 31.45, -62.12)
CIE-LCHlch(32.71, 69.63, 296.85°)
OKLaboklab(43.21% -0.0063 -0.1797)
OKLCHoklch(43.21% 0.18 268)
XYZxyz(10.6984, 7.4048, 42.4519)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841B1 #B19828
analogous
#2886B1 #2841B1 #5328B1
triadic
#2841B1 #B12841 #41B128
tetradic
#2841B1 #B12886 #B19828 #28B153
square
#2841B1 #B12886 #B19828 #28B153
split-complementary
#2841B1 #B15328 #86B128
monochromatic
#111C4D #1D2F7F #2841B1 #425DD4 #7488E0

Accessibility & contrast

On white

8.46
#2841B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2841B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841B1
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841B1#FFFFFF#000000##FFFFFF
##2841B11.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2841b1;
/* rgb */ color: rgb(40, 65, 177);
/* oklch */ color: oklch(43.2% 0.180 268.0);
Tailwind
colors: {
  custom: {
    50: '#7875c9',
    500: '#2841b1',
    950: '#000000',
  },
}
SCSS
$custom: #2841b1;
$custom-light: #7875c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2841b1",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 177
  },
  "hsl": {
    "h": 229.051,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43214,
    "c": 0.17977,
    "h": 268
  },
  "luminance": 0.07406
}

Semantic roles & 50–950 ramp

primary
#2841B1
secondary
#C7B76E
accent
#C842E6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2841B1

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

Preview Lab → · Contrast checker → · Palette generator →

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