#2837AE#2837AE

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

Color values

HEX#2837AE
RGBrgb(40, 55, 174)
HSLhsl(233, 63%, 42%)
HSVhsv(233, 77%, 68%)
CMYKcmyk(77%, 68.4%, 0%, 31.8%)
CIE-LABlab(30.01, 36.78, -64.77)
CIE-LCHlch(30.01, 74.49, 299.59°)
OKLaboklab(41.15% -0.0004 -0.1875)
OKLCHoklch(41.15% 0.187 269.9)
XYZxyz(9.8786, 6.2384, 40.7197)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837AE #AE9F28
analogous
#287AAE #2837AE #5C28AE
triadic
#2837AE #AE2837 #37AE28
tetradic
#2837AE #AE287A #AE9F28 #28AE5C
square
#2837AE #AE287A #AE9F28 #28AE5C
split-complementary
#2837AE #AE5C28 #7AAE28
monochromatic
#11184A #1D277C #2837AE #4051D3 #727EDF

Accessibility & contrast

On white

9.34
#2837AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2837AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837AE
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837AE#FFFFFF#000000##FFFFFF
##2837AE1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0040AC
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2837ae;
/* rgb */ color: rgb(40, 55, 174);
/* oklch */ color: oklch(41.1% 0.187 269.9);
Tailwind
colors: {
  custom: {
    50: '#786ec7',
    500: '#2837ae',
    950: '#000000',
  },
}
SCSS
$custom: #2837ae;
$custom-light: #786ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#2837ae",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 174
  },
  "hsl": {
    "h": 233.284,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41149,
    "c": 0.18748,
    "h": 269.9
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2837AE

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

Preview Lab → · Contrast checker → · Palette generator →

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