#3843C5#3843C5

#3843C5 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 46.2% C 0.199 H 272.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#3843C5
RGBrgb(56, 67, 197)
HSLhsl(235, 56%, 50%)
HSVhsv(235, 72%, 77%)
CMYKcmyk(71.6%, 66%, 0%, 22.7%)
CIE-LABlab(35.76, 39.13, -68.87)
CIE-LCHlch(35.76, 79.21, 299.60°)
OKLaboklab(46.21% 0.0071 -0.1991)
OKLCHoklch(46.21% 0.199 272)
XYZxyz(13.7127, 8.8849, 53.8048)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3843C5 #C5BA38
analogous
#388AC5 #3843C5 #7438C5
triadic
#3843C5 #C53843 #43C538
tetradic
#3843C5 #C5388A #C5BA38 #38C574
square
#3843C5 #C5388A #C5BA38 #38C574
split-complementary
#3843C5 #C57438 #8AC538
monochromatic
#1D2366 #2A3395 #3843C5 #676FD4 #969CE1

Accessibility & contrast

On white

7.56
#3843C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3843C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3843C5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3843C5#FFFFFF#000000##FFFFFF
##3843C51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#004EC3
Tritanopia (blue-blind)
#00667E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3843c5;
/* rgb */ color: rgb(56, 67, 197);
/* oklch */ color: oklch(46.2% 0.199 272.0);
Tailwind
colors: {
  custom: {
    50: '#8277d8',
    500: '#3843c5',
    950: '#000000',
  },
}
SCSS
$custom: #3843c5;
$custom-light: #8277d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3843c5",
  "rgb": {
    "r": 56,
    "g": 67,
    "b": 197
  },
  "hsl": {
    "h": 235.319,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46212,
    "c": 0.1992,
    "h": 272
  },
  "luminance": 0.08886
}

Semantic roles & 50–950 ramp

primary
#3843C5
secondary
#CDC88C
accent
#D349DF
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #3843C5

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

Preview Lab → · Contrast checker → · Palette generator →

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