#2837B1#2837B1

#2837B1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.191 H 269.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2837B1
RGBrgb(40, 55, 177)
HSLhsl(233, 63%, 43%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(77.4%, 68.9%, 0%, 30.6%)
CIE-LABlab(30.30, 37.86, -66.09)
CIE-LCHlch(30.30, 76.16, 299.81°)
OKLaboklab(41.45% -0.0007 -0.1913)
OKLCHoklch(41.45% 0.191 269.8)
XYZxyz(10.1744, 6.3567, 42.2772)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837B1 #B1A228
analogous
#287BB1 #2837B1 #5E28B1
triadic
#2837B1 #B12837 #37B128
tetradic
#2837B1 #B1287B #B1A228 #28B15E
square
#2837B1 #B1287B #B1A228 #28B15E
split-complementary
#2837B1 #B15E28 #7BB128
monochromatic
#11184D #1D277F #2837B1 #4252D4 #7480E0

Accessibility & contrast

On white

9.24
#2837B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2837B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837B1
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837B1#FFFFFF#000000##FFFFFF
##2837B11.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0041AF
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2837b1;
/* rgb */ color: rgb(40, 55, 177);
/* oklch */ color: oklch(41.4% 0.191 269.8);
Tailwind
colors: {
  custom: {
    50: '#796ec9',
    500: '#2837b1',
    950: '#000000',
  },
}
SCSS
$custom: #2837b1;
$custom-light: #796ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#2837b1",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 177
  },
  "hsl": {
    "h": 233.431,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41446,
    "c": 0.19132,
    "h": 269.8
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#2837B1
secondary
#C7BD6E
accent
#D442E6
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2837B1

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

Preview Lab → · Contrast checker → · Palette generator →

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