#3862C5#3862C5

#3862C5 is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.1% C 0.162 H 264.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#3862C5
RGBrgb(56, 98, 197)
HSLhsl(222, 56%, 50%)
HSVhsv(222, 72%, 77%)
CMYKcmyk(71.6%, 50.3%, 0%, 22.7%)
CIE-LABlab(43.66, 19.33, -56.02)
CIE-LCHlch(43.66, 59.26, 289.04°)
OKLaboklab(52.11% -0.0162 -0.1609)
OKLCHoklch(52.11% 0.162 264.2)
XYZxyz(16.0731, 13.6056, 54.5916)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3862C5 #C59B38
analogous
#38A8C5 #3862C5 #5538C5
triadic
#3862C5 #C53862 #62C538
tetradic
#3862C5 #C538A8 #C59B38 #38C555
square
#3862C5 #C538A8 #C59B38 #38C555
split-complementary
#3862C5 #C55538 #A8C538
monochromatic
#1D3366 #2A4A95 #3862C5 #6787D4 #96ADE1

Accessibility & contrast

On white

5.64
#3862C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#3862C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3862C5
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3862C5#FFFFFF#000000##FFFFFF
##3862C51.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276EC9
Deuteranopia (green-blind)
#0061C3
Tritanopia (blue-blind)
#007A8A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #3862c5;
/* rgb */ color: rgb(56, 98, 197);
/* oklch */ color: oklch(52.1% 0.162 264.2);
Tailwind
colors: {
  custom: {
    50: '#808ed7',
    500: '#3862c5',
    950: '#000000',
  },
}
SCSS
$custom: #3862c5;
$custom-light: #808ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#3862c5",
  "rgb": {
    "r": 56,
    "g": 98,
    "b": 197
  },
  "hsl": {
    "h": 222.128,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52108,
    "c": 0.16176,
    "h": 264.2
  },
  "luminance": 0.13607
}

Semantic roles & 50–950 ramp

primary
#3862C5
secondary
#CDB98C
accent
#B249DF
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #3862C5

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

Preview Lab → · Contrast checker → · Palette generator →

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