#2839A4#2839A4

#2839A4 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.172 H 269.7°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2839A4
RGBrgb(40, 57, 164)
HSLhsl(232, 61%, 40%)
HSVhsv(232, 76%, 64%)
CMYKcmyk(75.6%, 65.2%, 0%, 35.7%)
CIE-LABlab(29.56, 31.85, -59.51)
CIE-LCHlch(29.56, 67.49, 298.16°)
OKLaboklab(40.54% -0.0008 -0.1721)
OKLCHoklch(40.54% 0.172 269.7)
XYZxyz(9.0367, 6.0567, 35.8076)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839A4 #A49328
analogous
#2877A4 #2839A4 #5528A4
triadic
#2839A4 #A42839 #39A428
tetradic
#2839A4 #A42877 #A49328 #28A455
square
#2839A4 #A42877 #A49328 #28A455
split-complementary
#2839A4 #A45528 #77A428
monochromatic
#101742 #1C2873 #2839A4 #3A4FCF #6B7BDB

Accessibility & contrast

On white

9.50
#2839A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2839A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839A4
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839A4#FFFFFF#000000##FFFFFF
##2839A41.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2839a4;
/* rgb */ color: rgb(40, 57, 164);
/* oklch */ color: oklch(40.5% 0.172 269.7);
Tailwind
colors: {
  custom: {
    50: '#756fc0',
    500: '#2839a4',
    950: '#000000',
  },
}
SCSS
$custom: #2839a4;
$custom-light: #756fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2839a4",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 164
  },
  "hsl": {
    "h": 231.774,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.40536,
    "c": 0.17207,
    "h": 269.7
  },
  "luminance": 0.06058
}

Semantic roles & 50–950 ramp

primary
#2839A4
secondary
#C1B566
accent
#CE44E4
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2839A4

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

Preview Lab → · Contrast checker → · Palette generator →

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