#2841AB#2841AB

#2841AB is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.172 H 267.9°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#2841AB
RGBrgb(40, 65, 171)
HSLhsl(229, 62%, 41%)
HSVhsv(229, 77%, 67%)
CMYKcmyk(76.6%, 62%, 0%, 32.9%)
CIE-LABlab(32.19, 29.20, -59.39)
CIE-LCHlch(32.19, 66.19, 296.18°)
OKLaboklab(42.67% -0.0062 -0.1717)
OKLCHoklch(42.67% 0.172 267.9)
XYZxyz(10.1135, 7.1709, 39.3713)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841AB #AB9228
analogous
#2883AB #2841AB #5128AB
triadic
#2841AB #AB2841 #41AB28
tetradic
#2841AB #AB2883 #AB9228 #28AB51
square
#2841AB #AB2883 #AB9228 #28AB51
split-complementary
#2841AB #AB5128 #83AB28
monochromatic
#111B48 #1C2E79 #2841AB #3E5AD2 #7085DE

Accessibility & contrast

On white

8.63
#2841AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2841AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841AB
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841AB#FFFFFF#000000##FFFFFF
##2841AB1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2841ab;
/* rgb */ color: rgb(40, 65, 171);
/* oklch */ color: oklch(42.7% 0.172 267.9);
Tailwind
colors: {
  custom: {
    50: '#7775c5',
    500: '#2841ab',
    950: '#000000',
  },
}
SCSS
$custom: #2841ab;
$custom-light: #7775c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2841ab",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 228.55,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42671,
    "c": 0.17178,
    "h": 267.9
  },
  "luminance": 0.07172
}

Semantic roles & 50–950 ramp

primary
#2841AB
secondary
#C4B36A
accent
#C643E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2841AB

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

Preview Lab → · Contrast checker → · Palette generator →

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