#2839B1#2839B1

#2839B1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.189 H 269.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2839B1
RGBrgb(40, 57, 177)
HSLhsl(233, 63%, 43%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(77.4%, 67.8%, 0%, 30.6%)
CIE-LABlab(30.76, 36.60, -65.32)
CIE-LCHlch(30.76, 74.88, 299.26°)
OKLaboklab(41.79% -0.0017 -0.1891)
OKLCHoklch(41.79% 0.189 269.5)
XYZxyz(10.2713, 6.5506, 42.3095)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839B1 #B1A028
analogous
#287DB1 #2839B1 #5C28B1
triadic
#2839B1 #B12839 #39B128
tetradic
#2839B1 #B1287D #B1A028 #28B15C
square
#2839B1 #B1287D #B1A028 #28B15C
split-complementary
#2839B1 #B15C28 #7DB128
monochromatic
#11194D #1D297F #2839B1 #4254D4 #7481E0

Accessibility & contrast

On white

9.09
#2839B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2839B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839B1
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839B1#FFFFFF#000000##FFFFFF
##2839B11.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2839b1;
/* rgb */ color: rgb(40, 57, 177);
/* oklch */ color: oklch(41.8% 0.189 269.5);
Tailwind
colors: {
  custom: {
    50: '#796fc9',
    500: '#2839b1',
    950: '#000000',
  },
}
SCSS
$custom: #2839b1;
$custom-light: #796fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2839b1",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 232.555,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41785,
    "c": 0.18909,
    "h": 269.5
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#2839B1
secondary
#C7BC6E
accent
#D242E6
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2839B1

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

Preview Lab → · Contrast checker → · Palette generator →

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