#2837A3#2837A3

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

Color values

HEX#2837A3
RGBrgb(40, 55, 163)
HSLhsl(233, 61%, 40%)
HSVhsv(233, 75%, 64%)
CMYKcmyk(75.5%, 66.3%, 0%, 36.1%)
CIE-LABlab(28.97, 32.78, -59.86)
CIE-LCHlch(28.97, 68.25, 298.71°)
OKLaboklab(40.08% 0.0005 -0.1731)
OKLCHoklch(40.08% 0.173 270.2)
XYZxyz(8.8499, 5.8269, 35.3015)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837A3 #A39428
analogous
#2875A3 #2837A3 #5728A3
triadic
#2837A3 #A32837 #37A328
tetradic
#2837A3 #A32875 #A39428 #28A357
square
#2837A3 #A32875 #A39428 #28A357
split-complementary
#2837A3 #A35728 #75A328
monochromatic
#101641 #1C2672 #2837A3 #3A4CCF #6B78DB

Accessibility & contrast

On white

9.70
#2837A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2837A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837A3
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837A3#FFFFFF#000000##FFFFFF
##2837A31.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#003FA1
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2837a3;
/* rgb */ color: rgb(40, 55, 163);
/* oklch */ color: oklch(40.1% 0.173 270.2);
Tailwind
colors: {
  custom: {
    50: '#756ebf',
    500: '#2837a3',
    950: '#000000',
  },
}
SCSS
$custom: #2837a3;
$custom-light: #756ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#2837a3",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 163
  },
  "hsl": {
    "h": 232.683,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4008,
    "c": 0.17312,
    "h": 270.2
  },
  "luminance": 0.05828
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2837A3

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

Preview Lab → · Contrast checker → · Palette generator →

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