#2837A4#2837A4

#2837A4 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.174 H 270.1°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#2837A4
RGBrgb(40, 55, 164)
HSLhsl(233, 61%, 40%)
HSVhsv(233, 76%, 64%)
CMYKcmyk(75.6%, 66.5%, 0%, 35.7%)
CIE-LABlab(29.06, 33.15, -60.31)
CIE-LCHlch(29.06, 68.82, 298.79°)
OKLaboklab(40.18% 0.0004 -0.1744)
OKLCHoklch(40.18% 0.174 270.1)
XYZxyz(8.9398, 5.8629, 35.7753)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837A4 #A49528
analogous
#2875A4 #2837A4 #5728A4
triadic
#2837A4 #A42837 #37A428
tetradic
#2837A4 #A42875 #A49528 #28A457
square
#2837A4 #A42875 #A49528 #28A457
split-complementary
#2837A4 #A45728 #75A428
monochromatic
#101642 #1C2773 #2837A4 #3A4CCF #6B79DB

Accessibility & contrast

On white

9.66
#2837A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2837A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837A4
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837A4#FFFFFF#000000##FFFFFF
##2837A41.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2837a4;
/* rgb */ color: rgb(40, 55, 164);
/* oklch */ color: oklch(40.2% 0.174 270.1);
Tailwind
colors: {
  custom: {
    50: '#766ec0',
    500: '#2837a4',
    950: '#000000',
  },
}
SCSS
$custom: #2837a4;
$custom-light: #766ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2837a4",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 164
  },
  "hsl": {
    "h": 232.742,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.40176,
    "c": 0.17444,
    "h": 270.1
  },
  "luminance": 0.05864
}

Semantic roles & 50–950 ramp

primary
#2837A4
secondary
#C1B666
accent
#D144E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2837A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2837A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva