#3A5ACB#3A5ACB

#3A5ACB is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.0% C 0.179 H 267.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#3A5ACB
RGBrgb(58, 90, 203)
HSLhsl(227, 58%, 51%)
HSVhsv(227, 71%, 80%)
CMYKcmyk(71.4%, 55.7%, 0%, 20.4%)
CIE-LABlab(42.03, 26.94, -62.12)
CIE-LCHlch(42.03, 67.71, 293.45°)
OKLaboklab(51.04% -0.0075 -0.179)
OKLCHoklch(51.04% 0.179 267.6)
XYZxyz(16.1768, 12.5220, 58.0528)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5ACB #CBAB3A
analogous
#3AA2CB #3A5ACB #623ACB
triadic
#3A5ACB #CB3A5A #5ACB3A
tetradic
#3A5ACB #CB3AA2 #CBAB3A #3ACB62
square
#3A5ACB #CB3AA2 #CBAB3A #3ACB62
split-complementary
#3A5ACB #CB623A #A2CB3A
monochromatic
#1D2F6E #2A439E #3A5ACB #6A83D8 #9BABE5

Accessibility & contrast

On white

5.99
#3A5ACB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#3A5ACB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5ACB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5ACB#FFFFFF#000000##FFFFFF
##3A5ACB1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a5acb;
/* rgb */ color: rgb(58, 90, 203);
/* oklch */ color: oklch(51.0% 0.179 267.6);
Tailwind
colors: {
  custom: {
    50: '#8388dc',
    500: '#3a5acb',
    950: '#000000',
  },
}
SCSS
$custom: #3a5acb;
$custom-light: #8388dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5acb",
  "rgb": {
    "r": 58,
    "g": 90,
    "b": 203
  },
  "hsl": {
    "h": 226.759,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51035,
    "c": 0.17913,
    "h": 267.6
  },
  "luminance": 0.12524
}

Semantic roles & 50–950 ramp

primary
#3A5ACB
secondary
#D0C290
accent
#BF46E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5ACB

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

Preview Lab → · Contrast checker → · Palette generator →

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