#2841B3#2841B3

#2841B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.4% C 0.182 H 268.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2841B3
RGBrgb(40, 65, 179)
HSLhsl(229, 63%, 43%)
HSVhsv(229, 78%, 70%)
CMYKcmyk(77.7%, 63.7%, 0%, 29.8%)
CIE-LABlab(32.89, 32.20, -63.02)
CIE-LCHlch(32.89, 70.77, 297.06°)
OKLaboklab(43.4% -0.0064 -0.1823)
OKLCHoklch(43.4% 0.182 268)
XYZxyz(10.8992, 7.4852, 43.5094)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841B3 #B39A28
analogous
#2886B3 #2841B3 #5528B3
triadic
#2841B3 #B32841 #41B328
tetradic
#2841B3 #B32886 #B39A28 #28B355
square
#2841B3 #B32886 #B39A28 #28B355
split-complementary
#2841B3 #B35528 #86B328
monochromatic
#121D4F #1D2F81 #2841B3 #435DD5 #7588E0

Accessibility & contrast

On white

8.41
#2841B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2841B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841B3
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841B3#FFFFFF#000000##FFFFFF
##2841B31.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2841b3;
/* rgb */ color: rgb(40, 65, 179);
/* oklch */ color: oklch(43.4% 0.182 268.0);
Tailwind
colors: {
  custom: {
    50: '#7875cb',
    500: '#2841b3',
    950: '#000000',
  },
}
SCSS
$custom: #2841b3;
$custom-light: #7875cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2841b3",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 179
  },
  "hsl": {
    "h": 229.209,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43398,
    "c": 0.18241,
    "h": 268
  },
  "luminance": 0.07486
}

Semantic roles & 50–950 ramp

primary
#2841B3
secondary
#C8B86F
accent
#C941E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2841B3

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

Preview Lab → · Contrast checker → · Palette generator →

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