#3831B6#3831B6

#3831B6 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.9% C 0.200 H 275.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#3831B6
RGBrgb(56, 49, 182)
HSLhsl(243, 58%, 45%)
HSVhsv(243, 73%, 71%)
CMYKcmyk(69.2%, 73.1%, 0%, 28.6%)
CIE-LABlab(30.43, 44.77, -68.80)
CIE-LCHlch(30.43, 82.09, 303.05°)
OKLaboklab(41.95% 0.0201 -0.1989)
OKLCHoklch(41.95% 0.2 275.8)
XYZxyz(11.1699, 6.4137, 44.8962)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3831B6 #AFB631
analogous
#316CB6 #3831B6 #7A31B6
triadic
#3831B6 #B63831 #31B638
tetradic
#3831B6 #B6316C #AFB631 #31B67A
square
#3831B6 #B6316C #AFB631 #31B67A
split-complementary
#3831B6 #B67A31 #6CB631
monochromatic
#1A1756 #292486 #3831B6 #5A53D1 #8884DE

Accessibility & contrast

On white

9.20
#3831B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3831B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3831B6
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3831B6#FFFFFF#000000##FFFFFF
##3831B61.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0042B4
Tritanopia (blue-blind)
#005771
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3831b6;
/* rgb */ color: rgb(56, 49, 182);
/* oklch */ color: oklch(41.9% 0.200 275.8);
Tailwind
colors: {
  custom: {
    50: '#816bcd',
    500: '#3831b6',
    950: '#000000',
  },
}
SCSS
$custom: #3831b6;
$custom-light: #816bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3831b6",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 243.158,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41945,
    "c": 0.19987,
    "h": 275.8
  },
  "luminance": 0.06415
}

Semantic roles & 50–950 ramp

primary
#3831B6
secondary
#C3C77C
accent
#E147D9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3831B6

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

Preview Lab → · Contrast checker → · Palette generator →

#3831B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva