#3A45B2#3A45B2

#3A45B2 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.171 H 273.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3A45B2
RGBrgb(58, 69, 178)
HSLhsl(235, 51%, 46%)
HSVhsv(235, 67%, 70%)
CMYKcmyk(67.4%, 61.2%, 0%, 30.2%)
CIE-LABlab(34.74, 31.47, -59.36)
CIE-LCHlch(34.74, 67.19, 297.93°)
OKLaboklab(44.99% 0.0089 -0.1711)
OKLCHoklch(44.99% 0.171 273)
XYZxyz(11.9062, 8.3690, 43.0988)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A45B2 #B2A73A
analogous
#3A81B2 #3A45B2 #6B3AB2
triadic
#3A45B2 #B23A45 #45B23A
tetradic
#3A45B2 #B23A81 #B2A73A #3AB26B
square
#3A45B2 #B23A81 #B2A73A #3AB26B
split-complementary
#3A45B2 #B26B3A #81B23A
monochromatic
#1C2156 #2B3384 #3A45B2 #5F68CB #8D94DA

Accessibility & contrast

On white

7.85
#3A45B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3A45B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A45B2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A45B2#FFFFFF#000000##FFFFFF
##3A45B21.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a45b2;
/* rgb */ color: rgb(58, 69, 178);
/* oklch */ color: oklch(45.0% 0.171 273.0);
Tailwind
colors: {
  custom: {
    50: '#7f78ca',
    500: '#3a45b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a45b2;
$custom-light: #7f78ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a45b2",
  "rgb": {
    "r": 58,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 234.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44993,
    "c": 0.17136,
    "h": 273
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#3A45B2
secondary
#C4BE83
accent
#CD4DDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3A45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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