#3852AF#3852AF

#3852AF is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.151 H 268.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#3852AF
RGBrgb(56, 82, 175)
HSLhsl(227, 52%, 45%)
HSVhsv(227, 68%, 69%)
CMYKcmyk(68%, 53.1%, 0%, 31.4%)
CIE-LABlab(37.79, 21.63, -52.64)
CIE-LCHlch(37.79, 56.92, 292.34°)
OKLaboklab(47.17% -0.0045 -0.1513)
OKLCHoklch(47.17% 0.151 268.3)
XYZxyz(12.3834, 9.9693, 41.8208)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3852AF #AF9538
analogous
#388DAF #3852AF #5A38AF
triadic
#3852AF #AF3852 #52AF38
tetradic
#3852AF #AF388D #AF9538 #38AF5A
square
#3852AF #AF388D #AF9538 #38AF5A
split-complementary
#3852AF #AF5A38 #8DAF38
monochromatic
#1A2752 #293C81 #3852AF #5A73CA #889AD9

Accessibility & contrast

On white

7.01
#3852AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#3852AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3852AF
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3852AF#FFFFFF#000000##FFFFFF
##3852AF1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145FB2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3852af;
/* rgb */ color: rgb(56, 82, 175);
/* oklch */ color: oklch(47.2% 0.151 268.3);
Tailwind
colors: {
  custom: {
    50: '#7c82c7',
    500: '#3852af',
    950: '#000000',
  },
}
SCSS
$custom: #3852af;
$custom-light: #7c82c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3852af",
  "rgb": {
    "r": 56,
    "g": 82,
    "b": 175
  },
  "hsl": {
    "h": 226.891,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47169,
    "c": 0.15133,
    "h": 268.3
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#3852AF
secondary
#C3B480
accent
#BC4DDB
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3852AF

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

Preview Lab → · Contrast checker → · Palette generator →

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