#3842BF#3842BF

#3842BF is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.193 H 272.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#3842BF
RGBrgb(56, 66, 191)
HSLhsl(236, 55%, 48%)
HSVhsv(236, 71%, 75%)
CMYKcmyk(70.7%, 65.4%, 0%, 25.1%)
CIE-LABlab(35.00, 37.66, -66.61)
CIE-LCHlch(35.00, 76.52, 299.48°)
OKLaboklab(45.49% 0.0082 -0.1925)
OKLCHoklch(45.49% 0.193 272.4)
XYZxyz(12.9799, 8.4975, 50.2362)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842BF #BFB538
analogous
#3885BF #3842BF #7238BF
triadic
#3842BF #BF3842 #42BF38
tetradic
#3842BF #BF3885 #BFB538 #38BF72
square
#3842BF #BF3885 #BFB538 #38BF72
split-complementary
#3842BF #BF7238 #85BF38
monochromatic
#1C2160 #2A3290 #3842BF #636BD1 #9298DF

Accessibility & contrast

On white

7.78
#3842BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3842BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842BF
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842BF#FFFFFF#000000##FFFFFF
##3842BF1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3842bf;
/* rgb */ color: rgb(56, 66, 191);
/* oklch */ color: oklch(45.5% 0.193 272.4);
Tailwind
colors: {
  custom: {
    50: '#8176d3',
    500: '#3842bf',
    950: '#000000',
  },
}
SCSS
$custom: #3842bf;
$custom-light: #8176d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3842bf",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 235.556,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.19264,
    "h": 272.4
  },
  "luminance": 0.08499
}

Semantic roles & 50–950 ramp

primary
#3842BF
secondary
#CAC589
accent
#D34ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3842BF

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

Preview Lab → · Contrast checker → · Palette generator →

#3842BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva