#2837A8#2837A8

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

Color values

HEX#2837A8
RGBrgb(40, 55, 168)
HSLhsl(233, 62%, 41%)
HSVhsv(233, 76%, 66%)
CMYKcmyk(76.2%, 67.3%, 0%, 34.1%)
CIE-LABlab(29.44, 34.61, -62.11)
CIE-LCHlch(29.44, 71.10, 299.13°)
OKLaboklab(40.56% 0.0001 -0.1797)
OKLCHoklch(40.56% 0.18 270)
XYZxyz(9.3067, 6.0096, 37.7077)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837A8 #A89928
analogous
#2877A8 #2837A8 #5928A8
triadic
#2837A8 #A82837 #37A828
tetradic
#2837A8 #A82877 #A89928 #28A859
square
#2837A8 #A82877 #A89928 #28A859
split-complementary
#2837A8 #A85928 #77A828
monochromatic
#101745 #1C2777 #2837A8 #3D4ED1 #6E7BDC

Accessibility & contrast

On white

9.54
#2837A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2837A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837A8
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837A8#FFFFFF#000000##FFFFFF
##2837A81.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#003FA6
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2837a8;
/* rgb */ color: rgb(40, 55, 168);
/* oklch */ color: oklch(40.6% 0.180 270.0);
Tailwind
colors: {
  custom: {
    50: '#776ec3',
    500: '#2837a8',
    950: '#000000',
  },
}
SCSS
$custom: #2837a8;
$custom-light: #776ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2837a8",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 168
  },
  "hsl": {
    "h": 232.969,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40562,
    "c": 0.1797,
    "h": 270
  },
  "luminance": 0.06011
}

Semantic roles & 50–950 ramp

primary
#2837A8
secondary
#C3B969
accent
#D243E5
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2837A8

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

Preview Lab → · Contrast checker → · Palette generator →

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