#2842A2#2842A2

#2842A2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.158 H 267.5°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2842A2
RGBrgb(40, 66, 162)
HSLhsl(227, 60%, 40%)
HSVhsv(227, 75%, 64%)
CMYKcmyk(75.3%, 59.3%, 0%, 36.5%)
CIE-LABlab(31.70, 25.13, -54.79)
CIE-LCHlch(31.70, 60.28, 294.64°)
OKLaboklab(42.07% -0.007 -0.1581)
OKLCHoklch(42.07% 0.158 267.5)
XYZxyz(9.3426, 6.9552, 35.0255)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842A2 #A28828
analogous
#287FA2 #2842A2 #4B28A2
triadic
#2842A2 #A22842 #42A228
tetradic
#2842A2 #A2287F #A28828 #28A24B
square
#2842A2 #A2287F #A28828 #28A24B
split-complementary
#2842A2 #A24B28 #7FA228
monochromatic
#101A40 #1C2E71 #2842A2 #3959CE #6A82DA

Accessibility & contrast

On white

8.78
#2842A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2842A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842A2
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842A2#FFFFFF#000000##FFFFFF
##2842A21.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2842a2;
/* rgb */ color: rgb(40, 66, 162);
/* oklch */ color: oklch(42.1% 0.158 267.5);
Tailwind
colors: {
  custom: {
    50: '#7476be',
    500: '#2842a2',
    950: '#000000',
  },
}
SCSS
$custom: #2842a2;
$custom-light: #7476be;
$custom-dark: #000000;
JSON
{
  "hex": "#2842a2",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 227.213,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42074,
    "c": 0.15828,
    "h": 267.5
  },
  "luminance": 0.06956
}

Semantic roles & 50–950 ramp

primary
#2842A2
secondary
#C1AD65
accent
#C244E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2842A2

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

Preview Lab → · Contrast checker → · Palette generator →

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