#3A5ACC#3A5ACC

#3A5ACC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.1% C 0.180 H 267.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#3A5ACC
RGBrgb(58, 90, 204)
HSLhsl(227, 59%, 51%)
HSVhsv(227, 72%, 80%)
CMYKcmyk(71.6%, 55.9%, 0%, 20%)
CIE-LABlab(42.11, 27.31, -62.57)
CIE-LCHlch(42.11, 68.27, 293.58°)
OKLaboklab(51.11% -0.0074 -0.1803)
OKLCHoklch(51.11% 0.18 267.6)
XYZxyz(16.2964, 12.5698, 58.6824)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5ACC #CCAC3A
analogous
#3AA3CC #3A5ACC #633ACC
triadic
#3A5ACC #CC3A5A #5ACC3A
tetradic
#3A5ACC #CC3AA3 #CCAC3A #3ACC63
square
#3A5ACC #CC3AA3 #CCAC3A #3ACC63
split-complementary
#3A5ACC #CC633A #A3CC3A
monochromatic
#1D2F6F #2943A0 #3A5ACC #6B83D9 #9BABE5

Accessibility & contrast

On white

5.98
#3A5ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#3A5ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5ACC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5ACC#FFFFFF#000000##FFFFFF
##3A5ACC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#00768A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a5acc;
/* rgb */ color: rgb(58, 90, 204);
/* oklch */ color: oklch(51.1% 0.180 267.6);
Tailwind
colors: {
  custom: {
    50: '#8388dc',
    500: '#3a5acc',
    950: '#000000',
  },
}
SCSS
$custom: #3a5acc;
$custom-light: #8388dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5acc",
  "rgb": {
    "r": 58,
    "g": 90,
    "b": 204
  },
  "hsl": {
    "h": 226.849,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51113,
    "c": 0.18046,
    "h": 267.6
  },
  "luminance": 0.12572
}

Semantic roles & 50–950 ramp

primary
#3A5ACC
secondary
#D1C391
accent
#C046E2
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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