#2839A1#2839A1

#2839A1 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.168 H 269.8°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#2839A1
RGBrgb(40, 57, 161)
HSLhsl(232, 60%, 39%)
HSVhsv(232, 75%, 63%)
CMYKcmyk(75.2%, 64.6%, 0%, 36.9%)
CIE-LABlab(29.29, 30.74, -58.14)
CIE-LCHlch(29.29, 65.76, 297.87°)
OKLaboklab(40.25% -0.0007 -0.1681)
OKLCHoklch(40.25% 0.168 269.8)
XYZxyz(8.7690, 5.9496, 34.3976)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839A1 #A19028
analogous
#2876A1 #2839A1 #5328A1
triadic
#2839A1 #A12839 #39A128
tetradic
#2839A1 #A12876 #A19028 #28A153
square
#2839A1 #A12876 #A19028 #28A153
split-complementary
#2839A1 #A15328 #76A128
monochromatic
#10163F #1C2870 #2839A1 #394DCE #6A79DA

Accessibility & contrast

On white

9.59
#2839A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2839A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839A1
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839A1#FFFFFF#000000##FFFFFF
##2839A11.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#003F9F
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2839a1;
/* rgb */ color: rgb(40, 57, 161);
/* oklch */ color: oklch(40.3% 0.168 269.8);
Tailwind
colors: {
  custom: {
    50: '#756fbe',
    500: '#2839a1',
    950: '#000000',
  },
}
SCSS
$custom: #2839a1;
$custom-light: #756fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2839a1",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 161
  },
  "hsl": {
    "h": 231.57,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40254,
    "c": 0.16806,
    "h": 269.8
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#2839A1
secondary
#C0B365
accent
#CD44E3
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2839A1

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

Preview Lab → · Contrast checker → · Palette generator →

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