#3A5FBF#3A5FBF

#3A5FBF is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.157 H 265.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#3A5FBF
RGBrgb(58, 95, 191)
HSLhsl(223, 53%, 49%)
HSVhsv(223, 70%, 75%)
CMYKcmyk(69.6%, 50.3%, 0%, 25.1%)
CIE-LABlab(42.53, 19.35, -54.37)
CIE-LCHlch(42.53, 57.71, 289.59°)
OKLaboklab(51.14% -0.0127 -0.1561)
OKLCHoklch(51.14% 0.157 265.4)
XYZxyz(15.2378, 12.8440, 50.9562)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FBF #BF9A3A
analogous
#3AA2BF #3A5FBF #583ABF
triadic
#3A5FBF #BF3A5F #5FBF3A
tetradic
#3A5FBF #BF3AA2 #BF9A3A #3ABF58
square
#3A5FBF #BF3AA2 #BF9A3A #3ABF58
split-complementary
#3A5FBF #BF583A #A2BF3A
monochromatic
#1D3061 #2C4890 #3A5FBF #6683D0 #95A9DF

Accessibility & contrast

On white

5.88
#3A5FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#3A5FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FBF
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FBF#FFFFFF#000000##FFFFFF
##3A5FBF1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276BC2
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3a5fbf;
/* rgb */ color: rgb(58, 95, 191);
/* oklch */ color: oklch(51.1% 0.157 265.4);
Tailwind
colors: {
  custom: {
    50: '#808bd3',
    500: '#3a5fbf',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fbf;
$custom-light: #808bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fbf",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 191
  },
  "hsl": {
    "h": 223.308,
    "s": 53.414,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5114,
    "c": 0.1566,
    "h": 265.4
  },
  "luminance": 0.12846
}

Semantic roles & 50–950 ramp

primary
#3A5FBF
secondary
#CAB88B
accent
#B44BDD
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #3A5FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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