#3862BA#3862BA

#3862BA is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.3% C 0.147 H 263.1°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#3862BA
RGBrgb(56, 98, 186)
HSLhsl(221, 54%, 47%)
HSVhsv(221, 70%, 73%)
CMYKcmyk(69.9%, 47.3%, 0%, 27.1%)
CIE-LABlab(42.94, 15.28, -50.79)
CIE-LCHlch(42.94, 53.04, 286.75°)
OKLaboklab(51.33% -0.0177 -0.1456)
OKLCHoklch(51.33% 0.147 263.1)
XYZxyz(14.8584, 13.1198, 48.1942)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3862BA #BA9038
analogous
#38A3BA #3862BA #4F38BA
triadic
#3862BA #BA3862 #62BA38
tetradic
#3862BA #BA38A3 #BA9038 #38BA4F
square
#3862BA #BA38A3 #BA9038 #38BA4F
split-complementary
#3862BA #BA4F38 #A3BA38
monochromatic
#1C305C #2A498B #3862BA #6084CF #8FA8DD

Accessibility & contrast

On white

5.79
#3862BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#3862BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3862BA
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3862BA#FFFFFF#000000##FFFFFF
##3862BA1.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346CBD
Deuteranopia (green-blind)
#1560B8
Tritanopia (blue-blind)
#007785
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3862ba;
/* rgb */ color: rgb(56, 98, 186);
/* oklch */ color: oklch(51.3% 0.147 263.1);
Tailwind
colors: {
  custom: {
    50: '#7e8ecf',
    500: '#3862ba',
    950: '#000000',
  },
}
SCSS
$custom: #3862ba;
$custom-light: #7e8ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#3862ba",
  "rgb": {
    "r": 56,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 220.615,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51329,
    "c": 0.14664,
    "h": 263.1
  },
  "luminance": 0.13121
}

Semantic roles & 50–950 ramp

primary
#3862BA
secondary
#C8B386
accent
#AE4BDD
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3862BA

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

Preview Lab → · Contrast checker → · Palette generator →

#3862BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva