#2839A2#2839A2

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

Color values

HEX#2839A2
RGBrgb(40, 57, 162)
HSLhsl(232, 60%, 40%)
HSVhsv(232, 75%, 64%)
CMYKcmyk(75.3%, 64.8%, 0%, 36.5%)
CIE-LABlab(29.37, 31.11, -58.59)
CIE-LCHlch(29.37, 66.34, 297.96°)
OKLaboklab(40.35% -0.0007 -0.1694)
OKLCHoklch(40.35% 0.169 269.7)
XYZxyz(8.8576, 5.9851, 34.8638)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2839A2 #A29128
analogous
#2876A2 #2839A2 #5428A2
triadic
#2839A2 #A22839 #39A228
tetradic
#2839A2 #A22876 #A29128 #28A254
square
#2839A2 #A22876 #A29128 #28A254
split-complementary
#2839A2 #A25428 #76A228
monochromatic
#101640 #1C2871 #2839A2 #394ECE #6A7ADA

Accessibility & contrast

On white

9.56
#2839A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2839A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2839A2
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2839A2#FFFFFF#000000##FFFFFF
##2839A21.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2839a2;
/* rgb */ color: rgb(40, 57, 162);
/* oklch */ color: oklch(40.3% 0.169 269.7);
Tailwind
colors: {
  custom: {
    50: '#756fbe',
    500: '#2839a2',
    950: '#000000',
  },
}
SCSS
$custom: #2839a2;
$custom-light: #756fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2839a2",
  "rgb": {
    "r": 40,
    "g": 57,
    "b": 162
  },
  "hsl": {
    "h": 231.639,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40348,
    "c": 0.1694,
    "h": 269.7
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#2839A2
secondary
#C1B465
accent
#CD44E4
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2839A2

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

Preview Lab → · Contrast checker → · Palette generator →

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