#2841A8#2841A8

#2841A8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.4% C 0.168 H 267.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2841A8
RGBrgb(40, 65, 168)
HSLhsl(228, 62%, 41%)
HSVhsv(228, 76%, 66%)
CMYKcmyk(76.2%, 61.3%, 0%, 34.1%)
CIE-LABlab(31.94, 28.07, -58.01)
CIE-LCHlch(31.94, 64.45, 295.82°)
OKLaboklab(42.4% -0.0062 -0.1676)
OKLCHoklch(42.4% 0.168 267.9)
XYZxyz(9.8308, 7.0578, 37.8824)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2841A8 #A88F28
analogous
#2881A8 #2841A8 #4F28A8
triadic
#2841A8 #A82841 #41A828
tetradic
#2841A8 #A82881 #A88F28 #28A84F
square
#2841A8 #A82881 #A88F28 #28A84F
split-complementary
#2841A8 #A84F28 #81A828
monochromatic
#101B45 #1C2E77 #2841A8 #3D59D1 #6E84DC

Accessibility & contrast

On white

8.71
#2841A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2841A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2841A8
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2841A8#FFFFFF#000000##FFFFFF
##2841A81.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2841a8;
/* rgb */ color: rgb(40, 65, 168);
/* oklch */ color: oklch(42.4% 0.168 267.9);
Tailwind
colors: {
  custom: {
    50: '#7675c3',
    500: '#2841a8',
    950: '#000000',
  },
}
SCSS
$custom: #2841a8;
$custom-light: #7675c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2841a8",
  "rgb": {
    "r": 40,
    "g": 65,
    "b": 168
  },
  "hsl": {
    "h": 228.281,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42403,
    "c": 0.16773,
    "h": 267.9
  },
  "luminance": 0.07059
}

Semantic roles & 50–950 ramp

primary
#2841A8
secondary
#C3B169
accent
#C543E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2841A8

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

Preview Lab → · Contrast checker → · Palette generator →

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