#2837AD#2837AD

#2837AD is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.1% C 0.186 H 269.9°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#2837AD
RGBrgb(40, 55, 173)
HSLhsl(233, 62%, 42%)
HSVhsv(233, 77%, 68%)
CMYKcmyk(76.9%, 68.2%, 0%, 32.2%)
CIE-LABlab(29.91, 36.42, -64.33)
CIE-LCHlch(29.91, 73.93, 299.52°)
OKLaboklab(41.05% -0.0003 -0.1862)
OKLCHoklch(41.05% 0.186 269.9)
XYZxyz(9.7815, 6.1996, 40.2082)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837AD #AD9E28
analogous
#287AAD #2837AD #5C28AD
triadic
#2837AD #AD2837 #37AD28
tetradic
#2837AD #AD287A #AD9E28 #28AD5C
square
#2837AD #AD287A #AD9E28 #28AD5C
split-complementary
#2837AD #AD5C28 #7AAD28
monochromatic
#11174A #1D277B #2837AD #3F50D3 #717DDE

Accessibility & contrast

On white

9.37
#2837AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2837AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837AD
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837AD#FFFFFF#000000##FFFFFF
##2837AD1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB1
Deuteranopia (green-blind)
#0040AB
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2837ad;
/* rgb */ color: rgb(40, 55, 173);
/* oklch */ color: oklch(41.1% 0.186 269.9);
Tailwind
colors: {
  custom: {
    50: '#786ec7',
    500: '#2837ad',
    950: '#000000',
  },
}
SCSS
$custom: #2837ad;
$custom-light: #786ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#2837ad",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 173
  },
  "hsl": {
    "h": 233.233,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41051,
    "c": 0.18619,
    "h": 269.9
  },
  "luminance": 0.06201
}

Semantic roles & 50–950 ramp

primary
#2837AD
secondary
#C5BB6C
accent
#D342E6
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2837AD

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

Preview Lab → · Contrast checker → · Palette generator →

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