#3837B2#3837B2

#3837B2 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.188 H 275.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#3837B2
RGBrgb(56, 55, 178)
HSLhsl(240, 53%, 46%)
HSVhsv(240, 69%, 70%)
CMYKcmyk(68.5%, 69.1%, 0%, 30.2%)
CIE-LABlab(31.32, 39.94, -64.97)
CIE-LCHlch(31.32, 76.27, 301.58°)
OKLaboklab(42.46% 0.017 -0.1877)
OKLCHoklch(42.46% 0.188 275.2)
XYZxyz(11.0303, 6.7865, 42.8395)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3837B2 #B1B237
analogous
#3773B2 #3837B2 #7537B2
triadic
#3837B2 #B23837 #37B238
tetradic
#3837B2 #B23773 #B1B237 #37B275
square
#3837B2 #B23773 #B1B237 #37B275
split-complementary
#3837B2 #B27537 #73B237
monochromatic
#1B1A54 #292983 #3837B2 #5B5ACC #8A89DB

Accessibility & contrast

On white

8.91
#3837B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3837B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3837B2
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3837B2#FFFFFF#000000##FFFFFF
##3837B21.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3837b2;
/* rgb */ color: rgb(56, 55, 178);
/* oklch */ color: oklch(42.5% 0.188 275.2);
Tailwind
colors: {
  custom: {
    50: '#7f6fca',
    500: '#3837b2',
    950: '#000000',
  },
}
SCSS
$custom: #3837b2;
$custom-light: #7f6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#3837b2",
  "rgb": {
    "r": 56,
    "g": 55,
    "b": 178
  },
  "hsl": {
    "h": 240.488,
    "s": 52.79,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42461,
    "c": 0.18845,
    "h": 275.2
  },
  "luminance": 0.06787
}

Semantic roles & 50–950 ramp

primary
#3837B2
secondary
#C4C580
accent
#DC4CDB
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3837B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3837B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva