#3A45C3#3A45C3

#3A45C3 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.5% C 0.194 H 272.4°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#3A45C3
RGBrgb(58, 69, 195)
HSLhsl(235, 54%, 50%)
HSVhsv(235, 70%, 76%)
CMYKcmyk(70.3%, 64.6%, 0%, 23.5%)
CIE-LABlab(36.17, 37.43, -67.04)
CIE-LCHlch(36.17, 76.78, 299.18°)
OKLaboklab(46.48% 0.0081 -0.1936)
OKLCHoklch(46.48% 0.194 272.4)
XYZxyz(13.7201, 9.0946, 52.6516)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A45C3 #C3B83A
analogous
#3A8AC3 #3A45C3 #733AC3
triadic
#3A45C3 #C33A45 #45C33A
tetradic
#3A45C3 #C33A8A #C3B83A #3AC373
square
#3A45C3 #C33A8A #C3B83A #3AC373
split-complementary
#3A45C3 #C3733A #8AC33A
monochromatic
#1E2465 #2C3494 #3A45C3 #6871D2 #979DE0

Accessibility & contrast

On white

7.45
#3A45C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3A45C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A45C3
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A45C3#FFFFFF#000000##FFFFFF
##3A45C31.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#004FC1
Tritanopia (blue-blind)
#00667E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a45c3;
/* rgb */ color: rgb(58, 69, 195);
/* oklch */ color: oklch(46.5% 0.194 272.4);
Tailwind
colors: {
  custom: {
    50: '#8279d6',
    500: '#3a45c3',
    950: '#000000',
  },
}
SCSS
$custom: #3a45c3;
$custom-light: #8279d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a45c3",
  "rgb": {
    "r": 58,
    "g": 69,
    "b": 195
  },
  "hsl": {
    "h": 235.182,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46483,
    "c": 0.19381,
    "h": 272.4
  },
  "luminance": 0.09096
}

Semantic roles & 50–950 ramp

primary
#3A45C3
secondary
#CCC78D
accent
#D24ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #3A45C3

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

Preview Lab → · Contrast checker → · Palette generator →

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