#2843B2#2843B2

#2843B2 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.7% C 0.179 H 267.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#2843B2
RGBrgb(40, 67, 178)
HSLhsl(228, 63%, 43%)
HSVhsv(228, 78%, 70%)
CMYKcmyk(77.5%, 62.4%, 0%, 30.2%)
CIE-LABlab(33.30, 30.52, -61.75)
CIE-LCHlch(33.30, 68.88, 296.30°)
OKLaboklab(43.68% -0.0076 -0.1785)
OKLCHoklch(43.68% 0.179 267.6)
XYZxyz(10.9153, 7.6786, 43.0177)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2843B2 #B29728
analogous
#2888B2 #2843B2 #5228B2
triadic
#2843B2 #B22843 #43B228
tetradic
#2843B2 #B22888 #B29728 #28B252
square
#2843B2 #B22888 #B29728 #28B252
split-complementary
#2843B2 #B25228 #88B228
monochromatic
#121D4E #1D3080 #2843B2 #435FD5 #758AE0

Accessibility & contrast

On white

8.28
#2843B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2843B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2843B2
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2843B2#FFFFFF#000000##FFFFFF
##2843B21.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2843b2;
/* rgb */ color: rgb(40, 67, 178);
/* oklch */ color: oklch(43.7% 0.179 267.6);
Tailwind
colors: {
  custom: {
    50: '#7876ca',
    500: '#2843b2',
    950: '#000000',
  },
}
SCSS
$custom: #2843b2;
$custom-light: #7876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2843b2",
  "rgb": {
    "r": 40,
    "g": 67,
    "b": 178
  },
  "hsl": {
    "h": 228.261,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4368,
    "c": 0.1787,
    "h": 267.6
  },
  "luminance": 0.0768
}

Semantic roles & 50–950 ramp

primary
#2843B2
secondary
#C7B66F
accent
#C641E6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2843B2

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

Preview Lab → · Contrast checker → · Palette generator →

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