#2837A9#2837A9

#2837A9 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.181 H 270.0°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#2837A9
RGBrgb(40, 55, 169)
HSLhsl(233, 62%, 41%)
HSVhsv(233, 76%, 66%)
CMYKcmyk(76.3%, 67.5%, 0%, 33.7%)
CIE-LABlab(29.53, 34.97, -62.56)
CIE-LCHlch(29.53, 71.67, 299.21°)
OKLaboklab(40.66% 0 -0.181)
OKLCHoklch(40.66% 0.181 270)
XYZxyz(9.4002, 6.0470, 38.2002)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837A9 #A99A28
analogous
#2877A9 #2837A9 #5928A9
triadic
#2837A9 #A92837 #37A928
tetradic
#2837A9 #A92877 #A99A28 #28A959
square
#2837A9 #A92877 #A99A28 #28A959
split-complementary
#2837A9 #A95928 #77A928
monochromatic
#111746 #1C2778 #2837A9 #3D4ED1 #6F7BDD

Accessibility & contrast

On white

9.50
#2837A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2837A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837A9
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837A9#FFFFFF#000000##FFFFFF
##2837A91.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#003FA7
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2837a9;
/* rgb */ color: rgb(40, 55, 169);
/* oklch */ color: oklch(40.7% 0.181 270.0);
Tailwind
colors: {
  custom: {
    50: '#776ec4',
    500: '#2837a9',
    950: '#000000',
  },
}
SCSS
$custom: #2837a9;
$custom-light: #776ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#2837a9",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 169
  },
  "hsl": {
    "h": 233.023,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40659,
    "c": 0.18101,
    "h": 270
  },
  "luminance": 0.06048
}

Semantic roles & 50–950 ramp

primary
#2837A9
secondary
#C4B969
accent
#D243E5
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2837A9

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

Preview Lab → · Contrast checker → · Palette generator →

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