#3842CA#3842CA

#3842CA is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.5% C 0.207 H 272.0°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#3842CA
RGBrgb(56, 66, 202)
HSLhsl(236, 58%, 51%)
HSVhsv(236, 72%, 79%)
CMYKcmyk(72.3%, 67.3%, 0%, 20.8%)
CIE-LABlab(35.98, 41.46, -71.42)
CIE-LCHlch(35.98, 82.59, 300.14°)
OKLaboklab(46.51% 0.0072 -0.2065)
OKLCHoklch(46.51% 0.207 272)
XYZxyz(14.2362, 9.0000, 56.8526)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3842CA #CAC038
analogous
#388BCA #3842CA #7738CA
triadic
#3842CA #CA3842 #42CA38
tetradic
#3842CA #CA388B #CAC038 #38CA77
square
#3842CA #CA388B #CAC038 #38CA77
split-complementary
#3842CA #CA7738 #8BCA38
monochromatic
#1D226B #29319B #3842CA #6870D7 #999EE4

Accessibility & contrast

On white

7.50
#3842CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3842CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3842CA
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3842CA#FFFFFF#000000##FFFFFF
##3842CA1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#006780
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3842ca;
/* rgb */ color: rgb(56, 66, 202);
/* oklch */ color: oklch(46.5% 0.207 272.0);
Tailwind
colors: {
  custom: {
    50: '#8377db',
    500: '#3842ca',
    950: '#000000',
  },
}
SCSS
$custom: #3842ca;
$custom-light: #8377db;
$custom-dark: #000000;
JSON
{
  "hex": "#3842ca",
  "rgb": {
    "r": 56,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 235.89,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46511,
    "c": 0.20666,
    "h": 272
  },
  "luminance": 0.09001
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3842CA

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

Preview Lab → · Contrast checker → · Palette generator →

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