#3835A2#3835A2

#3835A2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.170 H 276.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#3835A2
RGBrgb(56, 53, 162)
HSLhsl(242, 51%, 42%)
HSVhsv(242, 67%, 64%)
CMYKcmyk(65.4%, 67.3%, 0%, 36.5%)
CIE-LABlab(29.40, 35.73, -58.51)
CIE-LCHlch(29.40, 68.56, 301.41°)
OKLaboklab(40.63% 0.0204 -0.1688)
OKLCHoklch(40.63% 0.17 276.9)
XYZxyz(9.4235, 5.9948, 34.8359)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3835A2 #9FA235
analogous
#3569A2 #3835A2 #6E35A2
triadic
#3835A2 #A23835 #35A238
tetradic
#3835A2 #A23569 #9FA235 #35A26E
square
#3835A2 #A23569 #9FA235 #35A26E
split-complementary
#3835A2 #A26E35 #69A235
monochromatic
#181746 #282674 #3835A2 #524FC5 #7F7DD4

Accessibility & contrast

On white

9.55
#3835A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#3835A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3835A2
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3835A2#FFFFFF#000000##FFFFFF
##3835A21.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3835a2;
/* rgb */ color: rgb(56, 53, 162);
/* oklch */ color: oklch(40.6% 0.170 276.9);
Tailwind
colors: {
  custom: {
    50: '#7c6dbe',
    500: '#3835a2',
    950: '#000000',
  },
}
SCSS
$custom: #3835a2;
$custom-light: #7c6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3835a2",
  "rgb": {
    "r": 56,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 241.651,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40627,
    "c": 0.17002,
    "h": 276.9
  },
  "luminance": 0.05996
}

Semantic roles & 50–950 ramp

primary
#3835A2
secondary
#BBBD75
accent
#DA4ED6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #3835A2

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

Preview Lab → · Contrast checker → · Palette generator →

#3835A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva