#3A45B7#3A45B7

#3A45B7 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.4% C 0.178 H 272.8°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#3A45B7
RGBrgb(58, 69, 183)
HSLhsl(235, 52%, 47%)
HSVhsv(235, 68%, 72%)
CMYKcmyk(68.3%, 62.3%, 0%, 28.2%)
CIE-LABlab(35.15, 33.23, -61.65)
CIE-LCHlch(35.15, 70.04, 298.33°)
OKLaboklab(45.42% 0.0087 -0.1778)
OKLCHoklch(45.42% 0.178 272.8)
XYZxyz(12.4174, 8.5735, 45.7910)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A45B7 #B7AC3A
analogous
#3A84B7 #3A45B7 #6E3AB7
triadic
#3A45B7 #B73A45 #45B73A
tetradic
#3A45B7 #B73A84 #B7AC3A #3AB76E
square
#3A45B7 #B73A84 #B7AC3A #3AB76E
split-complementary
#3A45B7 #B76E3A #84B73A
monochromatic
#1D225A #2B3389 #3A45B7 #616BCD #9096DC

Accessibility & contrast

On white

7.73
#3A45B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3A45B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A45B7
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A45B7#FFFFFF#000000##FFFFFF
##3A45B71.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a45b7;
/* rgb */ color: rgb(58, 69, 183);
/* oklch */ color: oklch(45.4% 0.178 272.8);
Tailwind
colors: {
  custom: {
    50: '#8078ce',
    500: '#3a45b7',
    950: '#000000',
  },
}
SCSS
$custom: #3a45b7;
$custom-light: #8078ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a45b7",
  "rgb": {
    "r": 58,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 234.72,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45423,
    "c": 0.17806,
    "h": 272.8
  },
  "luminance": 0.08575
}

Semantic roles & 50–950 ramp

primary
#3A45B7
secondary
#C7C186
accent
#CF4CDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #3A45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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