#2837AB#2837AB

#2837AB is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.9% C 0.184 H 270.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2837AB
RGBrgb(40, 55, 171)
HSLhsl(233, 62%, 41%)
HSVhsv(233, 77%, 67%)
CMYKcmyk(76.6%, 67.8%, 0%, 32.9%)
CIE-LABlab(29.72, 35.70, -63.45)
CIE-LCHlch(29.72, 72.80, 299.36°)
OKLaboklab(40.85% -0.0001 -0.1836)
OKLCHoklch(40.85% 0.184 270)
XYZxyz(9.5894, 6.1227, 39.1966)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837AB #AB9C28
analogous
#2879AB #2837AB #5B28AB
triadic
#2837AB #AB2837 #37AB28
tetradic
#2837AB #AB2879 #AB9C28 #28AB5B
square
#2837AB #AB2879 #AB9C28 #28AB5B
split-complementary
#2837AB #AB5B28 #79AB28
monochromatic
#111748 #1C2779 #2837AB #3E4FD2 #707CDE

Accessibility & contrast

On white

9.44
#2837AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2837AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837AB
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837AB#FFFFFF#000000##FFFFFF
##2837AB1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2837ab;
/* rgb */ color: rgb(40, 55, 171);
/* oklch */ color: oklch(40.9% 0.184 270.0);
Tailwind
colors: {
  custom: {
    50: '#776ec5',
    500: '#2837ab',
    950: '#000000',
  },
}
SCSS
$custom: #2837ab;
$custom-light: #776ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2837ab",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 233.13,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40854,
    "c": 0.18361,
    "h": 270
  },
  "luminance": 0.06124
}

Semantic roles & 50–950 ramp

primary
#2837AB
secondary
#C4BA6A
accent
#D343E5
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2837AB

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

Preview Lab → · Contrast checker → · Palette generator →

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