#3845CA#3845CA

#3845CA is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.0% C 0.203 H 271.5°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#3845CA
RGBrgb(56, 69, 202)
HSLhsl(235, 58%, 51%)
HSVhsv(235, 72%, 79%)
CMYKcmyk(72.3%, 65.8%, 0%, 20.8%)
CIE-LABlab(36.67, 39.63, -70.30)
CIE-LCHlch(36.67, 80.70, 299.41°)
OKLaboklab(47.01% 0.0054 -0.2032)
OKLCHoklch(47.01% 0.203 271.5)
XYZxyz(14.4161, 9.3598, 56.9125)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3845CA #CABD38
analogous
#388ECA #3845CA #7438CA
triadic
#3845CA #CA3845 #45CA38
tetradic
#3845CA #CA388E #CABD38 #38CA74
square
#3845CA #CA388E #CABD38 #38CA74
split-complementary
#3845CA #CA7438 #8ECA38
monochromatic
#1D246B #29349B #3845CA #6872D7 #999FE4

Accessibility & contrast

On white

7.31
#3845CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#3845CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3845CA
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3845CA#FFFFFF#000000##FFFFFF
##3845CA1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#004FC7
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3845ca;
/* rgb */ color: rgb(56, 69, 202);
/* oklch */ color: oklch(47.0% 0.203 271.5);
Tailwind
colors: {
  custom: {
    50: '#8379db',
    500: '#3845ca',
    950: '#000000',
  },
}
SCSS
$custom: #3845ca;
$custom-light: #8379db;
$custom-dark: #000000;
JSON
{
  "hex": "#3845ca",
  "rgb": {
    "r": 56,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 234.658,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47008,
    "c": 0.2033,
    "h": 271.5
  },
  "luminance": 0.09361
}

Semantic roles & 50–950 ramp

primary
#3845CA
secondary
#CFCA8E
accent
#D347E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #3845CA

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

Preview Lab → · Contrast checker → · Palette generator →

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