#3A45BC#3A45BC

#3A45BC is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.9% C 0.185 H 272.6°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#3A45BC
RGBrgb(58, 69, 188)
HSLhsl(235, 53%, 48%)
HSVhsv(235, 69%, 74%)
CMYKcmyk(69.1%, 63.3%, 0%, 26.3%)
CIE-LABlab(35.57, 34.99, -63.92)
CIE-LCHlch(35.57, 72.87, 298.70°)
OKLaboklab(45.86% 0.0085 -0.1845)
OKLCHoklch(45.86% 0.185 272.6)
XYZxyz(12.9471, 8.7854, 48.5806)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A45BC #BCB13A
analogous
#3A86BC #3A45BC #703ABC
triadic
#3A45BC #BC3A45 #45BC3A
tetradic
#3A45BC #BC3A86 #BCB13A #3ABC70
square
#3A45BC #BC3A86 #BCB13A #3ABC70
split-complementary
#3A45BC #BC703A #86BC3A
monochromatic
#1D235E #2C348D #3A45BC #646DCF #9399DE

Accessibility & contrast

On white

7.62
#3A45BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#3A45BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A45BC
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A45BC#FFFFFF#000000##FFFFFF
##3A45BC1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#00647A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3a45bc;
/* rgb */ color: rgb(58, 69, 188);
/* oklch */ color: oklch(45.9% 0.185 272.6);
Tailwind
colors: {
  custom: {
    50: '#8179d1',
    500: '#3a45bc',
    950: '#000000',
  },
}
SCSS
$custom: #3a45bc;
$custom-light: #8179d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a45bc",
  "rgb": {
    "r": 58,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 234.923,
    "s": 52.846,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4586,
    "c": 0.18468,
    "h": 272.6
  },
  "luminance": 0.08787
}

Semantic roles & 50–950 ramp

primary
#3A45BC
secondary
#C9C389
accent
#D04CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #3A45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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