#2842A7#2842A7

#2842A7 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.165 H 267.6°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2842A7
RGBrgb(40, 66, 167)
HSLhsl(228, 61%, 41%)
HSVhsv(228, 76%, 65%)
CMYKcmyk(76%, 60.5%, 0%, 34.5%)
CIE-LABlab(32.12, 27.03, -57.12)
CIE-LCHlch(32.12, 63.20, 295.32°)
OKLaboklab(42.51% -0.0069 -0.165)
OKLCHoklch(42.51% 0.165 267.6)
XYZxyz(9.7959, 7.1365, 37.4129)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842A7 #A78D28
analogous
#2881A7 #2842A7 #4E28A7
triadic
#2842A7 #A72842 #42A728
tetradic
#2842A7 #A72881 #A78D28 #28A74E
square
#2842A7 #A72881 #A78D28 #28A74E
split-complementary
#2842A7 #A74E28 #81A728
monochromatic
#101B44 #1C2E76 #2842A7 #3C5AD0 #6D84DC

Accessibility & contrast

On white

8.65
#2842A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2842A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842A7
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842A7#FFFFFF#000000##FFFFFF
##2842A71.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2842a7;
/* rgb */ color: rgb(40, 66, 167);
/* oklch */ color: oklch(42.5% 0.165 267.6);
Tailwind
colors: {
  custom: {
    50: '#7576c2',
    500: '#2842a7',
    950: '#000000',
  },
}
SCSS
$custom: #2842a7;
$custom-light: #7576c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2842a7",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 227.717,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.16513,
    "h": 267.6
  },
  "luminance": 0.07138
}

Semantic roles & 50–950 ramp

primary
#2842A7
secondary
#C3B068
accent
#C343E4
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2842A7

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

Preview Lab → · Contrast checker → · Palette generator →

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