#3A45B5#3A45B5

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

Color values

HEX#3A45B5
RGBrgb(58, 69, 181)
HSLhsl(235, 51%, 47%)
HSVhsv(235, 68%, 71%)
CMYKcmyk(68%, 61.9%, 0%, 29%)
CIE-LABlab(34.98, 32.53, -60.74)
CIE-LCHlch(34.98, 68.90, 298.17°)
OKLaboklab(45.25% 0.0088 -0.1752)
OKLCHoklch(45.25% 0.175 272.9)
XYZxyz(12.2107, 8.4908, 44.7025)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A45B5 #B5AA3A
analogous
#3A83B5 #3A45B5 #6D3AB5
triadic
#3A45B5 #B53A45 #45B53A
tetradic
#3A45B5 #B53A83 #B5AA3A #3AB56D
square
#3A45B5 #B53A83 #B5AA3A #3AB56D
split-complementary
#3A45B5 #B56D3A #83B53A
monochromatic
#1C2258 #2B3387 #3A45B5 #606ACC #8E95DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A45B5#FFFFFF#000000##FFFFFF
##3A45B51.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)
#0058B9
Deuteranopia (green-blind)
#004DB3
Tritanopia (blue-blind)
#006176
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a45b5;
/* rgb */ color: rgb(58, 69, 181);
/* oklch */ color: oklch(45.3% 0.175 272.9);
Tailwind
colors: {
  custom: {
    50: '#7f78cc',
    500: '#3a45b5',
    950: '#000000',
  },
}
SCSS
$custom: #3a45b5;
$custom-light: #7f78cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a45b5",
  "rgb": {
    "r": 58,
    "g": 69,
    "b": 181
  },
  "hsl": {
    "h": 234.634,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45251,
    "c": 0.17539,
    "h": 272.9
  },
  "luminance": 0.08492
}

Semantic roles & 50–950 ramp

primary
#3A45B5
secondary
#C6C085
accent
#CE4DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3A45B5

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

Preview Lab → · Contrast checker → · Palette generator →

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