#3841CA#3841CA

#3841CA is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.3% C 0.208 H 272.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#3841CA
RGBrgb(56, 65, 202)
HSLhsl(236, 58%, 51%)
HSVhsv(236, 72%, 79%)
CMYKcmyk(72.3%, 67.8%, 0%, 20.8%)
CIE-LABlab(35.76, 42.07, -71.79)
CIE-LCHlch(35.76, 83.21, 300.37°)
OKLaboklab(46.35% 0.0078 -0.2076)
OKLCHoklch(46.35% 0.208 272.2)
XYZxyz(14.1783, 8.8842, 56.8333)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3841CA #CAC138
analogous
#388ACA #3841CA #7838CA
triadic
#3841CA #CA3841 #41CA38
tetradic
#3841CA #CA388A #CAC138 #38CA78
square
#3841CA #CA388A #CAC138 #38CA78
split-complementary
#3841CA #CA7838 #8ACA38
monochromatic
#1D216B #29309B #3841CA #686FD7 #999DE4

Accessibility & contrast

On white

7.56
#3841CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3841CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3841CA
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3841CA#FFFFFF#000000##FFFFFF
##3841CA1.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)
#005BCE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3841ca;
/* rgb */ color: rgb(56, 65, 202);
/* oklch */ color: oklch(46.3% 0.208 272.2);
Tailwind
colors: {
  custom: {
    50: '#8476db',
    500: '#3841ca',
    950: '#000000',
  },
}
SCSS
$custom: #3841ca;
$custom-light: #8476db;
$custom-dark: #000000;
JSON
{
  "hex": "#3841ca",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 236.301,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46349,
    "c": 0.20775,
    "h": 272.2
  },
  "luminance": 0.08886
}

Semantic roles & 50–950 ramp

primary
#3841CA
secondary
#CFCB8E
accent
#D847E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3841CA

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

Preview Lab → · Contrast checker → · Palette generator →

#3841CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva