#3A58B2#3A58B2

#3A58B2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.7% C 0.147 H 267.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#3A58B2
RGBrgb(58, 88, 178)
HSLhsl(225, 51%, 46%)
HSVhsv(225, 67%, 70%)
CMYKcmyk(67.4%, 50.6%, 0%, 30.2%)
CIE-LABlab(39.74, 19.13, -51.27)
CIE-LCHlch(39.74, 54.72, 290.47°)
OKLaboklab(48.74% -0.0078 -0.1471)
OKLCHoklch(48.74% 0.147 267)
XYZxyz(13.2678, 11.0921, 43.5526)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A58B2 #B2943A
analogous
#3A94B2 #3A58B2 #583AB2
triadic
#3A58B2 #B23A58 #58B23A
tetradic
#3A58B2 #B23A94 #B2943A #3AB258
square
#3A58B2 #B23A94 #B2943A #3AB258
split-complementary
#3A58B2 #B2583A #94B23A
monochromatic
#1C2A56 #2B4184 #3A58B2 #5F7ACB #8DA0DA

Accessibility & contrast

On white

6.52
#3A58B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#3A58B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A58B2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A58B2#FFFFFF#000000##FFFFFF
##3A58B21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2463B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3a58b2;
/* rgb */ color: rgb(58, 88, 178);
/* oklch */ color: oklch(48.7% 0.147 267.0);
Tailwind
colors: {
  custom: {
    50: '#7e86ca',
    500: '#3a58b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a58b2;
$custom-light: #7e86ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a58b2",
  "rgb": {
    "r": 58,
    "g": 88,
    "b": 178
  },
  "hsl": {
    "h": 225,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48738,
    "c": 0.14728,
    "h": 267
  },
  "luminance": 0.11093
}

Semantic roles & 50–950 ramp

primary
#3A58B2
secondary
#C4B483
accent
#B74DDA
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #3A58B2

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

Preview Lab → · Contrast checker → · Palette generator →

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