#2837B0#2837B0

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

Color values

HEX#2837B0
RGBrgb(40, 55, 176)
HSLhsl(233, 63%, 42%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(77.3%, 68.8%, 0%, 31%)
CIE-LABlab(30.20, 37.50, -65.65)
CIE-LCHlch(30.20, 75.61, 299.73°)
OKLaboklab(41.35% -0.0006 -0.19)
OKLCHoklch(41.35% 0.19 269.8)
XYZxyz(10.0750, 6.3170, 41.7542)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2837B0 #B0A128
analogous
#287BB0 #2837B0 #5D28B0
triadic
#2837B0 #B02837 #37B028
tetradic
#2837B0 #B0287B #B0A128 #28B05D
square
#2837B0 #B0287B #B0A128 #28B05D
split-complementary
#2837B0 #B05D28 #7BB028
monochromatic
#11184C #1D277E #2837B0 #4151D4 #737FDF

Accessibility & contrast

On white

9.28
#2837B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2837B0
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2837B0#FFFFFF#000000##FFFFFF
##2837B01.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#0041AE
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2837b0;
/* rgb */ color: rgb(40, 55, 176);
/* oklch */ color: oklch(41.3% 0.190 269.8);
Tailwind
colors: {
  custom: {
    50: '#796ec9',
    500: '#2837b0',
    950: '#000000',
  },
}
SCSS
$custom: #2837b0;
$custom-light: #796ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#2837b0",
  "rgb": {
    "r": 40,
    "g": 55,
    "b": 176
  },
  "hsl": {
    "h": 233.382,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41347,
    "c": 0.19004,
    "h": 269.8
  },
  "luminance": 0.06318
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2837B0

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

Preview Lab → · Contrast checker → · Palette generator →

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