#2839AD#2839AD

#2839AD is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.184 H 269.6°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2839AD
RGBrgb(40, 57, 173)
HSLhsl(232, 62%, 42%)
HSVhsv(232, 77%, 68%)
CMYKcmyk(76.9%, 67.1%, 0%, 32.2%)
CIE-LABlab(30.38, 35.15, -63.55)
CIE-LCHlch(30.38, 72.63, 298.95°)
OKLaboklab(41.4% -0.0014 -0.1839)
OKLCHoklch(41.4% 0.184 269.6)
XYZxyz(9.8784, 6.3934, 40.2405)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839AD #AD9C28
analogous
#287CAD #2839AD #5A28AD
triadic
#2839AD #AD2839 #39AD28
tetradic
#2839AD #AD287C #AD9C28 #28AD5A
square
#2839AD #AD287C #AD9C28 #28AD5A
split-complementary
#2839AD #AD5A28 #7CAD28
monochromatic
#11184A #1D297B #2839AD #3F52D3 #717FDE

Accessibility & contrast

On white

9.21
#2839AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2839AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839AD
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839AD#FFFFFF#000000##FFFFFF
##2839AD1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0041AB
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2839ad;
/* rgb */ color: rgb(40, 57, 173);
/* oklch */ color: oklch(41.4% 0.184 269.6);
Tailwind
colors: {
  custom: {
    50: '#786fc7',
    500: '#2839ad',
    950: '#000000',
  },
}
SCSS
$custom: #2839ad;
$custom-light: #786fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2839ad",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 173
  },
  "hsl": {
    "h": 232.331,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41396,
    "c": 0.18392,
    "h": 269.6
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#2839AD
secondary
#C5BA6C
accent
#D142E6
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2839AD

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

Preview Lab → · Contrast checker → · Palette generator →

#2839AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva