#2837A5#2837A5

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

Color values

HEX#2837A5
RGBrgb(40, 55, 165)
HSLhsl(233, 61%, 40%)
HSVhsv(233, 76%, 65%)
CMYKcmyk(75.8%, 66.7%, 0%, 35.3%)
CIE-LABlab(29.16, 33.51, -60.76)
CIE-LCHlch(29.16, 69.39, 298.88°)
OKLaboklab(40.27% 0.0003 -0.1758)
OKLCHoklch(40.27% 0.176 270.1)
XYZxyz(9.0305, 5.8991, 36.2527)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837A5 #A59628
analogous
#2875A5 #2837A5 #5728A5
triadic
#2837A5 #A52837 #37A528
tetradic
#2837A5 #A52875 #A59628 #28A557
square
#2837A5 #A52875 #A59628 #28A557
split-complementary
#2837A5 #A55728 #75A528
monochromatic
#101642 #1C2774 #2837A5 #3B4DCF #6C79DB

Accessibility & contrast

On white

9.63
#2837A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2837A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837A5
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837A5#FFFFFF#000000##FFFFFF
##2837A51.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#003FA3
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2837a5;
/* rgb */ color: rgb(40, 55, 165);
/* oklch */ color: oklch(40.3% 0.176 270.1);
Tailwind
colors: {
  custom: {
    50: '#766ec1',
    500: '#2837a5',
    950: '#000000',
  },
}
SCSS
$custom: #2837a5;
$custom-light: #766ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2837a5",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 165
  },
  "hsl": {
    "h": 232.8,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40272,
    "c": 0.17576,
    "h": 270.1
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#2837A5
secondary
#C2B767
accent
#D144E4
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2837A5

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

Preview Lab → · Contrast checker → · Palette generator →

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