#2837A2#2837A2

#2837A2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.172 H 270.2°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2837A2
RGBrgb(40, 55, 162)
HSLhsl(233, 60%, 40%)
HSVhsv(233, 75%, 64%)
CMYKcmyk(75.3%, 66%, 0%, 36.5%)
CIE-LABlab(28.88, 32.41, -59.41)
CIE-LCHlch(28.88, 67.67, 298.62°)
OKLaboklab(39.99% 0.0005 -0.1718)
OKLCHoklch(39.99% 0.172 270.2)
XYZxyz(8.7606, 5.7912, 34.8315)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837A2 #A29328
analogous
#2874A2 #2837A2 #5628A2
triadic
#2837A2 #A22837 #37A228
tetradic
#2837A2 #A22874 #A29328 #28A256
square
#2837A2 #A22874 #A29328 #28A256
split-complementary
#2837A2 #A25628 #74A228
monochromatic
#101640 #1C2671 #2837A2 #394BCE #6A78DA

Accessibility & contrast

On white

9.73
#2837A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2837A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837A2
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837A2#FFFFFF#000000##FFFFFF
##2837A21.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2837a2;
/* rgb */ color: rgb(40, 55, 162);
/* oklch */ color: oklch(40.0% 0.172 270.2);
Tailwind
colors: {
  custom: {
    50: '#756ebf',
    500: '#2837a2',
    950: '#000000',
  },
}
SCSS
$custom: #2837a2;
$custom-light: #756ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2837a2",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 162
  },
  "hsl": {
    "h": 232.623,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39985,
    "c": 0.17179,
    "h": 270.2
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#2837A2
secondary
#C1B565
accent
#D044E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2837A2

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

Preview Lab → · Contrast checker → · Palette generator →

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