#3A6BCB#3A6BCB

#3A6BCB is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.5% C 0.158 H 262.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#3A6BCB
RGBrgb(58, 107, 203)
HSLhsl(220, 58%, 51%)
HSVhsv(220, 71%, 80%)
CMYKcmyk(71.4%, 47.3%, 0%, 20.4%)
CIE-LABlab(46.61, 16.07, -54.72)
CIE-LCHlch(46.61, 57.03, 286.37°)
OKLaboklab(54.51% -0.0216 -0.1569)
OKLCHoklch(54.51% 0.158 262.2)
XYZxyz(17.7783, 15.7248, 58.5866)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A6BCB #CB9A3A
analogous
#3AB3CB #3A6BCB #513ACB
triadic
#3A6BCB #CB3A6B #6BCB3A
tetradic
#3A6BCB #CB3AB3 #CB9A3A #3ACB51
square
#3A6BCB #CB3AB3 #CB9A3A #3ACB51
split-complementary
#3A6BCB #CB513A #B3CB3A
monochromatic
#1D386E #2A519E #3A6BCB #6A8FD8 #9BB4E5

Accessibility & contrast

On white

5.07
#3A6BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#3A6BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A6BCB
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A6BCB#FFFFFF#000000##FFFFFF
##3A6BCB1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3776CF
Deuteranopia (green-blind)
#1268C9
Tritanopia (blue-blind)
#008291
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3a6bcb;
/* rgb */ color: rgb(58, 107, 203);
/* oklch */ color: oklch(54.5% 0.158 262.2);
Tailwind
colors: {
  custom: {
    50: '#8294db',
    500: '#3a6bcb',
    950: '#000000',
  },
}
SCSS
$custom: #3a6bcb;
$custom-light: #8294db;
$custom-dark: #000000;
JSON
{
  "hex": "#3a6bcb",
  "rgb": {
    "r": 58,
    "g": 107,
    "b": 203
  },
  "hsl": {
    "h": 219.724,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5451,
    "c": 0.15841,
    "h": 262.2
  },
  "luminance": 0.15727
}

Semantic roles & 50–950 ramp

primary
#3A6BCB
secondary
#D0BB90
accent
#AD46E1
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #3A6BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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