#2837A0#2837A0

#2837A0 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.169 H 270.2°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#2837A0
RGBrgb(40, 55, 160)
HSLhsl(233, 60%, 39%)
HSVhsv(233, 75%, 63%)
CMYKcmyk(75%, 65.6%, 0%, 37.3%)
CIE-LABlab(28.70, 31.67, -58.49)
CIE-LCHlch(28.70, 66.52, 298.44°)
OKLaboklab(39.8% 0.0007 -0.1691)
OKLCHoklch(39.8% 0.169 270.2)
XYZxyz(8.5843, 5.7207, 33.9027)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837A0 #A09128
analogous
#2873A0 #2837A0 #5528A0
triadic
#2837A0 #A02837 #37A028
tetradic
#2837A0 #A02873 #A09128 #28A055
square
#2837A0 #A02873 #A09128 #28A055
split-complementary
#2837A0 #A05528 #73A028
monochromatic
#10153E #1C266F #2837A0 #384BCD #6977D9

Accessibility & contrast

On white

9.79
#2837A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2837A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837A0
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837A0#FFFFFF#000000##FFFFFF
##2837A01.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#003E9E
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2837a0;
/* rgb */ color: rgb(40, 55, 160);
/* oklch */ color: oklch(39.8% 0.169 270.2);
Tailwind
colors: {
  custom: {
    50: '#756ebd',
    500: '#2837a0',
    950: '#000000',
  },
}
SCSS
$custom: #2837a0;
$custom-light: #756ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2837a0",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 160
  },
  "hsl": {
    "h": 232.5,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39795,
    "c": 0.16912,
    "h": 270.2
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#2837A0
secondary
#C0B464
accent
#CF45E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2837A0

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

Preview Lab → · Contrast checker → · Palette generator →

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