#2843AC#2843AC

#2843AC is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.1% C 0.171 H 267.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2843AC
RGBrgb(40, 67, 172)
HSLhsl(228, 62%, 42%)
HSVhsv(228, 77%, 67%)
CMYKcmyk(76.7%, 61%, 0%, 32.5%)
CIE-LABlab(32.79, 28.26, -59.01)
CIE-LCHlch(32.79, 65.43, 295.59°)
OKLaboklab(43.14% -0.0075 -0.1705)
OKLCHoklch(43.14% 0.171 267.5)
XYZxyz(10.3260, 7.4428, 39.9141)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2843AC #AC9128
analogous
#2885AC #2843AC #4F28AC
triadic
#2843AC #AC2843 #43AC28
tetradic
#2843AC #AC2885 #AC9128 #28AC4F
square
#2843AC #AC2885 #AC9128 #28AC4F
split-complementary
#2843AC #AC4F28 #85AC28
monochromatic
#111C49 #1C307A #2843AC #3F5DD2 #7187DE

Accessibility & contrast

On white

8.44
#2843AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2843AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2843AC
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2843AC#FFFFFF#000000##FFFFFF
##2843AC1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2843ac;
/* rgb */ color: rgb(40, 67, 172);
/* oklch */ color: oklch(43.1% 0.171 267.5);
Tailwind
colors: {
  custom: {
    50: '#7776c6',
    500: '#2843ac',
    950: '#000000',
  },
}
SCSS
$custom: #2843ac;
$custom-light: #7776c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2843ac",
  "rgb": {
    "r": 40,
    "g": 67,
    "b": 172
  },
  "hsl": {
    "h": 227.727,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43144,
    "c": 0.17068,
    "h": 267.5
  },
  "luminance": 0.07444
}

Semantic roles & 50–950 ramp

primary
#2843AC
secondary
#C5B26B
accent
#C442E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2843AC

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

Preview Lab → · Contrast checker → · Palette generator →

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