#2841B2#2841B2

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

Color values

HEX#2841B2
RGBrgb(40, 65, 178)
HSLhsl(229, 63%, 43%)
HSVhsv(229, 78%, 70%)
CMYKcmyk(77.5%, 63.5%, 0%, 30.2%)
CIE-LABlab(32.80, 31.82, -62.57)
CIE-LCHlch(32.80, 70.20, 296.96°)
OKLaboklab(43.31% -0.0063 -0.181)
OKLCHoklch(43.31% 0.181 268)
XYZxyz(10.7985, 7.4449, 42.9787)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841B2 #B29928
analogous
#2886B2 #2841B2 #5428B2
triadic
#2841B2 #B22841 #41B228
tetradic
#2841B2 #B22886 #B29928 #28B254
square
#2841B2 #B22886 #B29928 #28B254
split-complementary
#2841B2 #B25428 #86B228
monochromatic
#121D4E #1D2F80 #2841B2 #435DD5 #7588E0

Accessibility & contrast

On white

8.44
#2841B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2841B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841B2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841B2#FFFFFF#000000##FFFFFF
##2841B21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2841b2;
/* rgb */ color: rgb(40, 65, 178);
/* oklch */ color: oklch(43.3% 0.181 268.0);
Tailwind
colors: {
  custom: {
    50: '#7875ca',
    500: '#2841b2',
    950: '#000000',
  },
}
SCSS
$custom: #2841b2;
$custom-light: #7875ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2841b2",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 229.13,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.1811,
    "h": 268
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#2841B2
secondary
#C7B76F
accent
#C841E6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2841B2

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

Preview Lab → · Contrast checker → · Palette generator →

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