#2843A2#2843A2

#2843A2 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.157 H 267.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2843A2
RGBrgb(40, 67, 162)
HSLhsl(227, 60%, 40%)
HSVhsv(227, 75%, 64%)
CMYKcmyk(75.3%, 58.6%, 0%, 36.5%)
CIE-LABlab(31.97, 24.46, -54.35)
CIE-LCHlch(31.97, 59.60, 294.23°)
OKLaboklab(42.27% -0.0077 -0.1568)
OKLCHoklch(42.27% 0.157 267.2)
XYZxyz(9.4015, 7.0730, 35.0452)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2843A2 #A28728
analogous
#2880A2 #2843A2 #4A28A2
triadic
#2843A2 #A22843 #43A228
tetradic
#2843A2 #A22880 #A28728 #28A24A
square
#2843A2 #A22880 #A28728 #28A24A
split-complementary
#2843A2 #A24A28 #80A228
monochromatic
#101A40 #1C2F71 #2843A2 #395ACE #6A83DA

Accessibility & contrast

On white

8.70
#2843A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2843A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2843A2
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2843A2#FFFFFF#000000##FFFFFF
##2843A21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2843a2;
/* rgb */ color: rgb(40, 67, 162);
/* oklch */ color: oklch(42.3% 0.157 267.2);
Tailwind
colors: {
  custom: {
    50: '#7476be',
    500: '#2843a2',
    950: '#000000',
  },
}
SCSS
$custom: #2843a2;
$custom-light: #7476be;
$custom-dark: #000000;
JSON
{
  "hex": "#2843a2",
  "rgb": {
    "r": 40,
    "g": 67,
    "b": 162
  },
  "hsl": {
    "h": 226.721,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42274,
    "c": 0.15703,
    "h": 267.2
  },
  "luminance": 0.07074
}

Semantic roles & 50–950 ramp

primary
#2843A2
secondary
#C1AC65
accent
#C044E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2843A2

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

Preview Lab → · Contrast checker → · Palette generator →

#2843A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva