#2842A3#2842A3

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

Color values

HEX#2842A3
RGBrgb(40, 66, 163)
HSLhsl(227, 61%, 40%)
HSVhsv(227, 75%, 64%)
CMYKcmyk(75.5%, 59.5%, 0%, 36.1%)
CIE-LABlab(31.79, 25.51, -55.26)
CIE-LCHlch(31.79, 60.86, 294.78°)
OKLaboklab(42.16% -0.007 -0.1595)
OKLCHoklch(42.16% 0.16 267.5)
XYZxyz(9.4318, 6.9909, 35.4955)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842A3 #A38928
analogous
#2880A3 #2842A3 #4C28A3
triadic
#2842A3 #A32842 #42A328
tetradic
#2842A3 #A32880 #A38928 #28A34C
square
#2842A3 #A32880 #A38928 #28A34C
split-complementary
#2842A3 #A34C28 #80A328
monochromatic
#101A41 #1C2E72 #2842A3 #3A59CF #6B82DB

Accessibility & contrast

On white

8.76
#2842A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#2842A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842A3
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842A3#FFFFFF#000000##FFFFFF
##2842A31.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2842a3;
/* rgb */ color: rgb(40, 66, 163);
/* oklch */ color: oklch(42.2% 0.160 267.5);
Tailwind
colors: {
  custom: {
    50: '#7476bf',
    500: '#2842a3',
    950: '#000000',
  },
}
SCSS
$custom: #2842a3;
$custom-light: #7476bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2842a3",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 227.317,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4216,
    "c": 0.15966,
    "h": 267.5
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#2842A3
secondary
#C1AE66
accent
#C244E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2842A3

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

Preview Lab → · Contrast checker → · Palette generator →

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