#3862DF#3862DF

#3862DF is a mid, vivid blue. Relative luminance 0.149; OKLCH L 54.1% C 0.196 H 265.9°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#3862DF
RGBrgb(56, 98, 223)
HSLhsl(225, 72%, 55%)
HSVhsv(225, 75%, 87%)
CMYKcmyk(74.9%, 56.1%, 0%, 12.5%)
CIE-LABlab(45.50, 28.87, -67.93)
CIE-LCHlch(45.50, 73.81, 293.02°)
OKLaboklab(54.08% -0.0141 -0.196)
OKLCHoklch(54.08% 0.196 265.9)
XYZxyz(19.3132, 14.9017, 71.6562)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3862DF #DFB538
analogous
#38B6DF #3862DF #6238DF
triadic
#3862DF #DF3862 #62DF38
tetradic
#3862DF #DF38B6 #DFB538 #38DF62
square
#3862DF #DF38B6 #DFB538 #38DF62
split-complementary
#3862DF #DF6238 #B6DF38
monochromatic
#163287 #1E46BC #3862DF #6D8CE7 #A1B5F0

Accessibility & contrast

On white

5.28
#3862DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#3862DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3862DF
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3862DF#FFFFFF#000000##FFFFFF
##3862DF1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#0064DD
Tritanopia (blue-blind)
#008197
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3862df;
/* rgb */ color: rgb(56, 98, 223);
/* oklch */ color: oklch(54.1% 0.196 265.9);
Tailwind
colors: {
  custom: {
    50: '#868eea',
    500: '#3862df',
    950: '#000000',
  },
}
SCSS
$custom: #3862df;
$custom-light: #868eea;
$custom-dark: #000000;
JSON
{
  "hex": "#3862df",
  "rgb": {
    "r": 56,
    "g": 98,
    "b": 223
  },
  "hsl": {
    "h": 224.91,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5408,
    "c": 0.19648,
    "h": 265.9
  },
  "luminance": 0.14904
}

Semantic roles & 50–950 ramp

primary
#3862DF
secondary
#DDCB96
accent
#C139EF
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #3862DF

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

Preview Lab → · Contrast checker → · Palette generator →

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