#3852AC#3852AC

#3852AC is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.9% C 0.147 H 268.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#3852AC
RGBrgb(56, 82, 172)
HSLhsl(227, 51%, 45%)
HSVhsv(227, 67%, 67%)
CMYKcmyk(67.4%, 52.3%, 0%, 32.5%)
CIE-LABlab(37.58, 20.54, -51.21)
CIE-LCHlch(37.58, 55.17, 291.85°)
OKLaboklab(46.94% -0.0047 -0.147)
OKLCHoklch(46.94% 0.147 268.2)
XYZxyz(12.0920, 9.8528, 40.2862)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852AC #AC9238
analogous
#388CAC #3852AC #5838AC
triadic
#3852AC #AC3852 #52AC38
tetradic
#3852AC #AC388C #AC9238 #38AC58
square
#3852AC #AC388C #AC9238 #38AC58
split-complementary
#3852AC #AC5838 #8CAC38
monochromatic
#1A2650 #293C7E #3852AC #5872C9 #8799D8

Accessibility & contrast

On white

7.07
#3852AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3852AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3852AC
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852AC#FFFFFF#000000##FFFFFF
##3852AC1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5EAF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3852ac;
/* rgb */ color: rgb(56, 82, 172);
/* oklch */ color: oklch(46.9% 0.147 268.2);
Tailwind
colors: {
  custom: {
    50: '#7c82c5',
    500: '#3852ac',
    950: '#000000',
  },
}
SCSS
$custom: #3852ac;
$custom-light: #7c82c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3852ac",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 226.552,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46943,
    "c": 0.14711,
    "h": 268.2
  },
  "luminance": 0.09854
}

Semantic roles & 50–950 ramp

primary
#3852AC
secondary
#C2B37E
accent
#BB4DDA
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3852AC

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

Preview Lab → · Contrast checker → · Palette generator →

#3852AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva