#3A58CB#3A58CB

#3A58CB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.6% C 0.182 H 268.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#3A58CB
RGBrgb(58, 88, 203)
HSLhsl(228, 58%, 51%)
HSVhsv(228, 71%, 80%)
CMYKcmyk(71.4%, 56.7%, 0%, 20.4%)
CIE-LABlab(41.52, 28.23, -62.96)
CIE-LCHlch(41.52, 69.00, 294.15°)
OKLaboklab(50.65% -0.0059 -0.1815)
OKLCHoklch(50.65% 0.182 268.1)
XYZxyz(16.0104, 12.1891, 57.9973)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A58CB #CBAD3A
analogous
#3AA0CB #3A58CB #643ACB
triadic
#3A58CB #CB3A58 #58CB3A
tetradic
#3A58CB #CB3AA0 #CBAD3A #3ACB64
square
#3A58CB #CB3AA0 #CBAD3A #3ACB64
split-complementary
#3A58CB #CB643A #A0CB3A
monochromatic
#1D2E6E #2A429E #3A58CB #6A81D8 #9BAAE5

Accessibility & contrast

On white

6.11
#3A58CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#3A58CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A58CB
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A58CB#FFFFFF#000000##FFFFFF
##3A58CB1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#007489
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #3a58cb;
/* rgb */ color: rgb(58, 88, 203);
/* oklch */ color: oklch(50.6% 0.182 268.1);
Tailwind
colors: {
  custom: {
    50: '#8386dc',
    500: '#3a58cb',
    950: '#000000',
  },
}
SCSS
$custom: #3a58cb;
$custom-light: #8386dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a58cb",
  "rgb": {
    "r": 58,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 227.586,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50645,
    "c": 0.18157,
    "h": 268.1
  },
  "luminance": 0.12191
}

Semantic roles & 50–950 ramp

primary
#3A58CB
secondary
#D0C390
accent
#C146E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A58CB

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

Preview Lab → · Contrast checker → · Palette generator →

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