#2842AC#2842AC

#2842AC is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.172 H 267.7°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2842AC
RGBrgb(40, 66, 172)
HSLhsl(228, 62%, 42%)
HSVhsv(228, 77%, 67%)
CMYKcmyk(76.7%, 61.6%, 0%, 32.5%)
CIE-LABlab(32.54, 28.92, -59.43)
CIE-LCHlch(32.54, 66.09, 295.95°)
OKLaboklab(42.95% -0.0069 -0.1718)
OKLCHoklch(42.95% 0.172 267.7)
XYZxyz(10.2671, 7.3250, 39.8945)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842AC #AC9228
analogous
#2884AC #2842AC #5028AC
triadic
#2842AC #AC2842 #42AC28
tetradic
#2842AC #AC2884 #AC9228 #28AC50
square
#2842AC #AC2884 #AC9228 #28AC50
split-complementary
#2842AC #AC5028 #84AC28
monochromatic
#111C49 #1C2F7A #2842AC #3F5CD2 #7186DE

Accessibility & contrast

On white

8.52
#2842AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2842AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842AC
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842AC#FFFFFF#000000##FFFFFF
##2842AC1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2842ac;
/* rgb */ color: rgb(40, 66, 172);
/* oklch */ color: oklch(43.0% 0.172 267.7);
Tailwind
colors: {
  custom: {
    50: '#7776c6',
    500: '#2842ac',
    950: '#000000',
  },
}
SCSS
$custom: #2842ac;
$custom-light: #7776c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2842ac",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 228.182,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42951,
    "c": 0.1719,
    "h": 267.7
  },
  "luminance": 0.07326
}

Semantic roles & 50–950 ramp

primary
#2842AC
secondary
#C5B36B
accent
#C542E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2842AC

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

Preview Lab → · Contrast checker → · Palette generator →

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