#2837AF#2837AF

#2837AF is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.189 H 269.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2837AF
RGBrgb(40, 55, 175)
HSLhsl(233, 63%, 42%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(77.1%, 68.6%, 0%, 31.4%)
CIE-LABlab(30.10, 37.14, -65.21)
CIE-LCHlch(30.10, 75.05, 299.66°)
OKLaboklab(41.25% -0.0005 -0.1888)
OKLCHoklch(41.25% 0.189 269.8)
XYZxyz(9.9765, 6.2775, 41.2350)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837AF #AFA028
analogous
#287BAF #2837AF #5C28AF
triadic
#2837AF #AF2837 #37AF28
tetradic
#2837AF #AF287B #AFA028 #28AF5C
square
#2837AF #AF287B #AFA028 #28AF5C
split-complementary
#2837AF #AF5C28 #7BAF28
monochromatic
#11184B #1D277D #2837AF #4151D4 #737FDF

Accessibility & contrast

On white

9.31
#2837AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2837AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2837AF
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837AF#FFFFFF#000000##FFFFFF
##2837AF1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0040AD
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2837af;
/* rgb */ color: rgb(40, 55, 175);
/* oklch */ color: oklch(41.2% 0.189 269.8);
Tailwind
colors: {
  custom: {
    50: '#786ec8',
    500: '#2837af',
    950: '#000000',
  },
}
SCSS
$custom: #2837af;
$custom-light: #786ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2837af",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 175
  },
  "hsl": {
    "h": 233.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41248,
    "c": 0.18876,
    "h": 269.8
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#2837AF
secondary
#C6BC6D
accent
#D442E6
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2837AF

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

Preview Lab → · Contrast checker → · Palette generator →

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