#2842AE#2842AE

#2842AE is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.175 H 267.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#2842AE
RGBrgb(40, 66, 174)
HSLhsl(228, 63%, 42%)
HSVhsv(228, 77%, 68%)
CMYKcmyk(77%, 62.1%, 0%, 31.8%)
CIE-LABlab(32.71, 29.67, -60.35)
CIE-LCHlch(32.71, 67.25, 296.18°)
OKLaboklab(43.13% -0.0069 -0.1744)
OKLCHoklch(43.13% 0.175 267.7)
XYZxyz(10.4606, 7.4024, 40.9137)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842AE #AE9428
analogous
#2885AE #2842AE #5128AE
triadic
#2842AE #AE2842 #42AE28
tetradic
#2842AE #AE2885 #AE9428 #28AE51
square
#2842AE #AE2885 #AE9428 #28AE51
split-complementary
#2842AE #AE5128 #85AE28
monochromatic
#111C4A #1D2F7C #2842AE #405DD3 #7287DF

Accessibility & contrast

On white

8.47
#2842AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2842AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842AE
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842AE#FFFFFF#000000##FFFFFF
##2842AE1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2842ae;
/* rgb */ color: rgb(40, 66, 174);
/* oklch */ color: oklch(43.1% 0.175 267.7);
Tailwind
colors: {
  custom: {
    50: '#7776c7',
    500: '#2842ae',
    950: '#000000',
  },
}
SCSS
$custom: #2842ae;
$custom-light: #7776c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2842ae",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 228.358,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4313,
    "c": 0.17459,
    "h": 267.7
  },
  "luminance": 0.07404
}

Semantic roles & 50–950 ramp

primary
#2842AE
secondary
#C6B46C
accent
#C642E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2842AE

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

Preview Lab → · Contrast checker → · Palette generator →

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