#2839A5#2839A5

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

Color values

HEX#2839A5
RGBrgb(40, 57, 165)
HSLhsl(232, 61%, 40%)
HSVhsv(232, 76%, 65%)
CMYKcmyk(75.8%, 65.5%, 0%, 35.3%)
CIE-LABlab(29.65, 32.22, -59.96)
CIE-LCHlch(29.65, 68.07, 298.25°)
OKLaboklab(40.63% -0.0009 -0.1734)
OKLCHoklch(40.63% 0.173 269.7)
XYZxyz(9.1274, 6.0930, 36.2850)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839A5 #A59428
analogous
#2877A5 #2839A5 #5528A5
triadic
#2839A5 #A52839 #39A528
tetradic
#2839A5 #A52877 #A59428 #28A555
square
#2839A5 #A52877 #A59428 #28A555
split-complementary
#2839A5 #A55528 #77A528
monochromatic
#101742 #1C2874 #2839A5 #3B4FCF #6C7BDB

Accessibility & contrast

On white

9.46
#2839A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2839A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839A5
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839A5#FFFFFF#000000##FFFFFF
##2839A51.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2839a5;
/* rgb */ color: rgb(40, 57, 165);
/* oklch */ color: oklch(40.6% 0.173 269.7);
Tailwind
colors: {
  custom: {
    50: '#766fc1',
    500: '#2839a5',
    950: '#000000',
  },
}
SCSS
$custom: #2839a5;
$custom-light: #766fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2839a5",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 165
  },
  "hsl": {
    "h": 231.84,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4063,
    "c": 0.1734,
    "h": 269.7
  },
  "luminance": 0.06094
}

Semantic roles & 50–950 ramp

primary
#2839A5
secondary
#C2B667
accent
#CE44E4
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2839A5

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

Preview Lab → · Contrast checker → · Palette generator →

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