#2842A9#2842A9

#2842A9 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.168 H 267.7°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#2842A9
RGBrgb(40, 66, 169)
HSLhsl(228, 62%, 41%)
HSVhsv(228, 76%, 66%)
CMYKcmyk(76.3%, 60.9%, 0%, 33.7%)
CIE-LABlab(32.28, 27.79, -58.05)
CIE-LCHlch(32.28, 64.36, 295.58°)
OKLaboklab(42.69% -0.0069 -0.1677)
OKLCHoklch(42.69% 0.168 267.7)
XYZxyz(9.9822, 7.2110, 38.3942)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842A9 #A98F28
analogous
#2882A9 #2842A9 #4E28A9
triadic
#2842A9 #A92842 #42A928
tetradic
#2842A9 #A92882 #A98F28 #28A94E
square
#2842A9 #A92882 #A98F28 #28A94E
split-complementary
#2842A9 #A94E28 #82A928
monochromatic
#111B46 #1C2F78 #2842A9 #3D5BD1 #6F85DD

Accessibility & contrast

On white

8.60
#2842A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2842A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842A9
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842A9#FFFFFF#000000##FFFFFF
##2842A91.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2842a9;
/* rgb */ color: rgb(40, 66, 169);
/* oklch */ color: oklch(42.7% 0.168 267.7);
Tailwind
colors: {
  custom: {
    50: '#7676c3',
    500: '#2842a9',
    950: '#000000',
  },
}
SCSS
$custom: #2842a9;
$custom-light: #7676c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2842a9",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 227.907,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42685,
    "c": 0.16785,
    "h": 267.7
  },
  "luminance": 0.07212
}

Semantic roles & 50–950 ramp

primary
#2842A9
secondary
#C4B169
accent
#C443E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2842A9

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

Preview Lab → · Contrast checker → · Palette generator →

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