#3846B2#3846B2

#3846B2 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.1% C 0.171 H 272.0°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#3846B2
RGBrgb(56, 70, 178)
HSLhsl(233, 52%, 46%)
HSVhsv(233, 69%, 70%)
CMYKcmyk(68.5%, 60.7%, 0%, 30.2%)
CIE-LABlab(34.87, 30.54, -59.15)
CIE-LCHlch(34.87, 66.57, 297.31°)
OKLaboklab(45.06% 0.0059 -0.1706)
OKLCHoklch(45.06% 0.171 272)
XYZxyz(11.8542, 8.4343, 43.1141)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3846B2 #B2A438
analogous
#3883B2 #3846B2 #6738B2
triadic
#3846B2 #B23846 #46B238
tetradic
#3846B2 #B23883 #B2A438 #38B267
square
#3846B2 #B23883 #B2A438 #38B267
split-complementary
#3846B2 #B26738 #83B238
monochromatic
#1B2155 #293483 #3846B2 #5C68CC #8A93DA

Accessibility & contrast

On white

7.82
#3846B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3846B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3846B2
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3846B2#FFFFFF#000000##FFFFFF
##3846B21.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3846b2;
/* rgb */ color: rgb(56, 70, 178);
/* oklch */ color: oklch(45.1% 0.171 272.0);
Tailwind
colors: {
  custom: {
    50: '#7e79ca',
    500: '#3846b2',
    950: '#000000',
  },
}
SCSS
$custom: #3846b2;
$custom-light: #7e79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3846b2",
  "rgb": {
    "r": 56,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 233.115,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45059,
    "c": 0.17066,
    "h": 272
  },
  "luminance": 0.08435
}

Semantic roles & 50–950 ramp

primary
#3846B2
secondary
#C5BD81
accent
#CB4CDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3846B2

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

Preview Lab → · Contrast checker → · Palette generator →

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