#3A45C2#3A45C2

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

Color values

HEX#3A45C2
RGBrgb(58, 69, 194)
HSLhsl(235, 54%, 49%)
HSVhsv(235, 70%, 76%)
CMYKcmyk(70.1%, 64.4%, 0%, 23.9%)
CIE-LABlab(36.08, 37.09, -66.60)
CIE-LCHlch(36.08, 76.23, 299.11°)
OKLaboklab(46.39% 0.0081 -0.1923)
OKLCHoklch(46.39% 0.193 272.4)
XYZxyz(13.6074, 9.0495, 52.0581)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A45C2 #C2B73A
analogous
#3A89C2 #3A45C2 #733AC2
triadic
#3A45C2 #C23A45 #45C23A
tetradic
#3A45C2 #C23A89 #C2B73A #3AC273
square
#3A45C2 #C23A89 #C2B73A #3AC273
split-complementary
#3A45C2 #C2733A #89C23A
monochromatic
#1E2364 #2C3493 #3A45C2 #6770D2 #979DE0

Accessibility & contrast

On white

7.47
#3A45C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#3A45C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A45C2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A45C2#FFFFFF#000000##FFFFFF
##3A45C21.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#004FC0
Tritanopia (blue-blind)
#00667D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a45c2;
/* rgb */ color: rgb(58, 69, 194);
/* oklch */ color: oklch(46.4% 0.193 272.4);
Tailwind
colors: {
  custom: {
    50: '#8279d5',
    500: '#3a45c2',
    950: '#000000',
  },
}
SCSS
$custom: #3a45c2;
$custom-light: #8279d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a45c2",
  "rgb": {
    "r": 58,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 235.147,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46393,
    "c": 0.19252,
    "h": 272.4
  },
  "luminance": 0.09051
}

Semantic roles & 50–950 ramp

primary
#3A45C2
secondary
#CBC68D
accent
#D14ADD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #3A45C2

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

Preview Lab → · Contrast checker → · Palette generator →

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