#2842B6#2842B6

#2842B6 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.185 H 267.8°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2842B6
RGBrgb(40, 66, 182)
HSLhsl(229, 64%, 44%)
HSVhsv(229, 78%, 71%)
CMYKcmyk(78%, 63.7%, 0%, 28.6%)
CIE-LABlab(33.40, 32.66, -63.96)
CIE-LCHlch(33.40, 71.82, 297.05°)
OKLaboklab(43.86% -0.007 -0.185)
OKLCHoklch(43.86% 0.185 267.8)
XYZxyz(11.2639, 7.7237, 45.1441)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842B6 #B69C28
analogous
#2889B6 #2842B6 #5528B6
triadic
#2842B6 #B62842 #42B628
tetradic
#2842B6 #B62889 #B69C28 #28B655
square
#2842B6 #B62889 #B69C28 #28B655
split-complementary
#2842B6 #B65528 #89B628
monochromatic
#121E52 #1D3084 #2842B6 #4560D6 #778BE1

Accessibility & contrast

On white

8.25
#2842B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2842B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842B6
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842B6#FFFFFF#000000##FFFFFF
##2842B61.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2842b6;
/* rgb */ color: rgb(40, 66, 182);
/* oklch */ color: oklch(43.9% 0.185 267.8);
Tailwind
colors: {
  custom: {
    50: '#7976cd',
    500: '#2842b6',
    950: '#000000',
  },
}
SCSS
$custom: #2842b6;
$custom-light: #7976cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2842b6",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 229.014,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43858,
    "c": 0.18516,
    "h": 267.8
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#2842B6
secondary
#C9B971
accent
#C941E7
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #2842B6

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

Preview Lab → · Contrast checker → · Palette generator →

#2842B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva