#2841B0#2841B0

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

Color values

HEX#2841B0
RGBrgb(40, 65, 176)
HSLhsl(229, 63%, 42%)
HSVhsv(229, 77%, 69%)
CMYKcmyk(77.3%, 63.1%, 0%, 31%)
CIE-LABlab(32.62, 31.08, -61.67)
CIE-LCHlch(32.62, 69.06, 296.75°)
OKLaboklab(43.12% -0.0063 -0.1783)
OKLCHoklch(43.12% 0.178 268)
XYZxyz(10.5991, 7.3651, 41.9289)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841B0 #B09728
analogous
#2885B0 #2841B0 #5328B0
triadic
#2841B0 #B02841 #41B028
tetradic
#2841B0 #B02885 #B09728 #28B053
square
#2841B0 #B02885 #B09728 #28B053
split-complementary
#2841B0 #B05328 #85B028
monochromatic
#111C4C #1D2F7E #2841B0 #415CD4 #7387DF

Accessibility & contrast

On white

8.49
#2841B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2841B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841B0
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841B0#FFFFFF#000000##FFFFFF
##2841B01.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2841b0;
/* rgb */ color: rgb(40, 65, 176);
/* oklch */ color: oklch(43.1% 0.178 268.0);
Tailwind
colors: {
  custom: {
    50: '#7875c9',
    500: '#2841b0',
    950: '#000000',
  },
}
SCSS
$custom: #2841b0;
$custom-light: #7875c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2841b0",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 176
  },
  "hsl": {
    "h": 228.971,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43123,
    "c": 0.17845,
    "h": 268
  },
  "luminance": 0.07366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2841B0

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

Preview Lab → · Contrast checker → · Palette generator →

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