#3A78D9#3A78D9

#3A78D9 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.2% C 0.162 H 259.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#3A78D9
RGBrgb(58, 120, 217)
HSLhsl(217, 68%, 54%)
HSVhsv(217, 73%, 85%)
CMYKcmyk(73.3%, 44.7%, 0%, 14.9%)
CIE-LABlab(51.08, 13.03, -55.51)
CIE-LCHlch(51.08, 57.02, 283.21°)
OKLaboklab(58.23% -0.0305 -0.159)
OKLCHoklch(58.23% 0.162 259.1)
XYZxyz(20.9812, 19.3399, 68.2594)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A78D9 #D99B3A
analogous
#3AC8D9 #3A78D9 #4C3AD9
triadic
#3A78D9 #D93A78 #78D93A
tetradic
#3A78D9 #D93AC8 #D99B3A #3AD94C
square
#3A78D9 #D93AC8 #D99B3A #3AD94C
split-complementary
#3A78D9 #D94C3A #C8D93A
monochromatic
#194180 #235BB3 #3A78D9 #6D9BE3 #A1BEED

Accessibility & contrast

On white

4.31
#3A78D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#3A78D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3A78D9
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A78D9#FFFFFF#000000##000000
##3A78D91.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4681DD
Deuteranopia (green-blind)
#2673D7
Tritanopia (blue-blind)
#008F9E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #3a78d9;
/* rgb */ color: rgb(58, 120, 217);
/* oklch */ color: oklch(58.2% 0.162 259.1);
Tailwind
colors: {
  custom: {
    50: '#849ee5',
    500: '#3a78d9',
    950: '#000000',
  },
}
SCSS
$custom: #3a78d9;
$custom-light: #849ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a78d9",
  "rgb": {
    "r": 58,
    "g": 120,
    "b": 217
  },
  "hsl": {
    "h": 216.604,
    "s": 67.66,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58227,
    "c": 0.16193,
    "h": 259.1
  },
  "luminance": 0.19342
}

Semantic roles & 50–950 ramp

primary
#3A78D9
secondary
#D9BF95
accent
#A73DEB
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0E16
muted
#7D7E84

Preview Lab

Preview with #3A78D9

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

Preview Lab → · Contrast checker → · Palette generator →

#3A78D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva