#2839AB#2839AB

#2839AB is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.181 H 269.6°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#2839AB
RGBrgb(40, 57, 171)
HSLhsl(232, 62%, 41%)
HSVhsv(232, 77%, 67%)
CMYKcmyk(76.6%, 66.7%, 0%, 32.9%)
CIE-LABlab(30.20, 34.42, -62.66)
CIE-LCHlch(30.20, 71.49, 298.78°)
OKLaboklab(41.2% -0.0013 -0.1813)
OKLCHoklch(41.2% 0.181 269.6)
XYZxyz(9.6864, 6.3166, 39.2289)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839AB #AB9A28
analogous
#287BAB #2839AB #5928AB
triadic
#2839AB #AB2839 #39AB28
tetradic
#2839AB #AB287B #AB9A28 #28AB59
square
#2839AB #AB287B #AB9A28 #28AB59
split-complementary
#2839AB #AB5928 #7BAB28
monochromatic
#111848 #1C2879 #2839AB #3E51D2 #707EDE

Accessibility & contrast

On white

9.28
#2839AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2839AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839AB
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839AB#FFFFFF#000000##FFFFFF
##2839AB1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2839ab;
/* rgb */ color: rgb(40, 57, 171);
/* oklch */ color: oklch(41.2% 0.181 269.6);
Tailwind
colors: {
  custom: {
    50: '#776fc5',
    500: '#2839ab',
    950: '#000000',
  },
}
SCSS
$custom: #2839ab;
$custom-light: #776fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2839ab",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 232.214,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41203,
    "c": 0.1813,
    "h": 269.6
  },
  "luminance": 0.06318
}

Semantic roles & 50–950 ramp

primary
#2839AB
secondary
#C4B96A
accent
#D043E5
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2839AB

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

Preview Lab → · Contrast checker → · Palette generator →

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