#3A45B8#3A45B8

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

Color values

HEX#3A45B8
RGBrgb(58, 69, 184)
HSLhsl(235, 52%, 47%)
HSVhsv(235, 68%, 72%)
CMYKcmyk(68.5%, 62.5%, 0%, 27.8%)
CIE-LABlab(35.23, 33.59, -62.11)
CIE-LCHlch(35.23, 70.61, 298.40°)
OKLaboklab(45.51% 0.0087 -0.1792)
OKLCHoklch(45.51% 0.179 272.8)
XYZxyz(12.5219, 8.6153, 46.3411)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A45B8 #B8AD3A
analogous
#3A84B8 #3A45B8 #6E3AB8
triadic
#3A45B8 #B83A45 #45B83A
tetradic
#3A45B8 #B83A84 #B8AD3A #3AB86E
square
#3A45B8 #B83A84 #B8AD3A #3AB86E
split-complementary
#3A45B8 #B86E3A #84B83A
monochromatic
#1D225B #2B3489 #3A45B8 #626BCD #9097DC

Accessibility & contrast

On white

7.71
#3A45B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A45B8
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A45B8#FFFFFF#000000##FFFFFF
##3A45B81.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#006278
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a45b8;
/* rgb */ color: rgb(58, 69, 184);
/* oklch */ color: oklch(45.5% 0.179 272.8);
Tailwind
colors: {
  custom: {
    50: '#8078ce',
    500: '#3a45b8',
    950: '#000000',
  },
}
SCSS
$custom: #3a45b8;
$custom-light: #8078ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a45b8",
  "rgb": {
    "r": 58,
    "g": 69,
    "b": 184
  },
  "hsl": {
    "h": 234.762,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4551,
    "c": 0.1794,
    "h": 272.8
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#3A45B8
secondary
#C7C187
accent
#CF4CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #3A45B8

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

Preview Lab → · Contrast checker → · Palette generator →

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