#3862EA#3862EA

#3862EA is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.0% C 0.211 H 266.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#3862EA
RGBrgb(56, 98, 234)
HSLhsl(226, 81%, 57%)
HSVhsv(226, 76%, 92%)
CMYKcmyk(76.1%, 58.1%, 0%, 8.2%)
CIE-LABlab(46.33, 32.86, -72.79)
CIE-LCHlch(46.33, 79.87, 294.29°)
OKLaboklab(54.96% -0.0136 -0.2103)
OKLCHoklch(54.96% 0.211 266.3)
XYZxyz(20.8446, 15.5143, 79.7219)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3862EA #EAC038
analogous
#38BBEA #3862EA #6738EA
triadic
#3862EA #EA3862 #62EA38
tetradic
#3862EA #EA38BB #EAC038 #38EA67
square
#3862EA #EA38BB #EAC038 #38EA67
split-complementary
#3862EA #EA6738 #BBEA38
monochromatic
#103098 #1642CF #3862EA #6F8EF0 #A7B9F6

Accessibility & contrast

On white

5.12
#3862EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#3862EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3862EA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3862EA#FFFFFF#000000##FFFFFF
##3862EA1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#0066E7
Tritanopia (blue-blind)
#00849C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3862ea;
/* rgb */ color: rgb(56, 98, 234);
/* oklch */ color: oklch(55.0% 0.211 266.3);
Tailwind
colors: {
  custom: {
    50: '#888ef2',
    500: '#3862ea',
    950: '#000000',
  },
}
SCSS
$custom: #3862ea;
$custom-light: #888ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#3862ea",
  "rgb": {
    "r": 56,
    "g": 98,
    "b": 234
  },
  "hsl": {
    "h": 225.843,
    "s": 80.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54963,
    "c": 0.2107,
    "h": 266.3
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#3862EA
secondary
#E3D29B
accent
#C830F7
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0D0C17
muted
#7E7D85

Preview Lab

Preview with #3862EA

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

Preview Lab → · Contrast checker → · Palette generator →

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