#2843AF#2843AF

#2843AF is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.4% C 0.175 H 267.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2843AF
RGBrgb(40, 67, 175)
HSLhsl(228, 63%, 42%)
HSVhsv(228, 77%, 69%)
CMYKcmyk(77.1%, 61.7%, 0%, 31.4%)
CIE-LABlab(33.05, 29.39, -60.38)
CIE-LCHlch(33.05, 67.16, 295.95°)
OKLaboklab(43.41% -0.0075 -0.1745)
OKLCHoklch(43.41% 0.175 267.5)
XYZxyz(10.6174, 7.5594, 41.4487)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2843AF #AF9428
analogous
#2887AF #2843AF #5128AF
triadic
#2843AF #AF2843 #43AF28
tetradic
#2843AF #AF2887 #AF9428 #28AF51
square
#2843AF #AF2887 #AF9428 #28AF51
split-complementary
#2843AF #AF5128 #87AF28
monochromatic
#111D4B #1D307D #2843AF #415ED4 #7388DF

Accessibility & contrast

On white

8.36
#2843AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2843AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2843AF
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2843AF#FFFFFF#000000##FFFFFF
##2843AF1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#005F72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2843af;
/* rgb */ color: rgb(40, 67, 175);
/* oklch */ color: oklch(43.4% 0.175 267.5);
Tailwind
colors: {
  custom: {
    50: '#7776c8',
    500: '#2843af',
    950: '#000000',
  },
}
SCSS
$custom: #2843af;
$custom-light: #7776c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2843af",
  "rgb": {
    "r": 40,
    "g": 67,
    "b": 175
  },
  "hsl": {
    "h": 228,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4341,
    "c": 0.1747,
    "h": 267.5
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#2843AF
secondary
#C6B46D
accent
#C542E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2843AF

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

Preview Lab → · Contrast checker → · Palette generator →

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