#2842AB#2842AB

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

Color values

HEX#2842AB
RGBrgb(40, 66, 171)
HSLhsl(228, 62%, 41%)
HSVhsv(228, 77%, 67%)
CMYKcmyk(76.6%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.45, 28.54, -58.97)
CIE-LCHlch(32.45, 65.52, 295.83°)
OKLaboklab(42.86% -0.0069 -0.1704)
OKLCHoklch(42.86% 0.171 267.7)
XYZxyz(10.1714, 7.2867, 39.3906)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842AB #AB9128
analogous
#2884AB #2842AB #5028AB
triadic
#2842AB #AB2842 #42AB28
tetradic
#2842AB #AB2884 #AB9128 #28AB50
square
#2842AB #AB2884 #AB9128 #28AB50
split-complementary
#2842AB #AB5028 #84AB28
monochromatic
#111C48 #1C2F79 #2842AB #3E5CD2 #7086DE

Accessibility & contrast

On white

8.54
#2842AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2842AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842AB
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842AB#FFFFFF#000000##FFFFFF
##2842AB1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2842ab;
/* rgb */ color: rgb(40, 66, 171);
/* oklch */ color: oklch(42.9% 0.171 267.7);
Tailwind
colors: {
  custom: {
    50: '#7676c5',
    500: '#2842ab',
    950: '#000000',
  },
}
SCSS
$custom: #2842ab;
$custom-light: #7676c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2842ab",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 228.092,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42862,
    "c": 0.17056,
    "h": 267.7
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#2842AB
secondary
#C4B36A
accent
#C543E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2842AB

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

Preview Lab → · Contrast checker → · Palette generator →

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