#3A46B2#3A46B2

#3A46B2 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.2% C 0.170 H 272.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#3A46B2
RGBrgb(58, 70, 178)
HSLhsl(234, 51%, 46%)
HSVhsv(234, 67%, 70%)
CMYKcmyk(67.4%, 60.7%, 0%, 30.2%)
CIE-LABlab(34.99, 30.83, -58.96)
CIE-LCHlch(34.99, 66.53, 297.61°)
OKLaboklab(45.18% 0.0081 -0.1699)
OKLCHoklch(45.18% 0.17 272.7)
XYZxyz(11.9683, 8.4931, 43.1195)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A46B2 #B2A63A
analogous
#3A82B2 #3A46B2 #6A3AB2
triadic
#3A46B2 #B23A46 #46B23A
tetradic
#3A46B2 #B23A82 #B2A63A #3AB26A
square
#3A46B2 #B23A82 #B2A63A #3AB26A
split-complementary
#3A46B2 #B26A3A #82B23A
monochromatic
#1C2256 #2B3484 #3A46B2 #5F69CB #8D94DA

Accessibility & contrast

On white

7.78
#3A46B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3A46B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A46B2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A46B2#FFFFFF#000000##FFFFFF
##3A46B21.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#006175
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a46b2;
/* rgb */ color: rgb(58, 70, 178);
/* oklch */ color: oklch(45.2% 0.170 272.7);
Tailwind
colors: {
  custom: {
    50: '#7f79ca',
    500: '#3a46b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a46b2;
$custom-light: #7f79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a46b2",
  "rgb": {
    "r": 58,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 234,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45178,
    "c": 0.17012,
    "h": 272.7
  },
  "luminance": 0.08494
}

Semantic roles & 50–950 ramp

primary
#3A46B2
secondary
#C4BE83
accent
#CC4DDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3A46B2

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

Preview Lab → · Contrast checker → · Palette generator →

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