#3A48B2#3A48B2

#3A48B2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.6% C 0.168 H 272.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#3A48B2
RGBrgb(58, 72, 178)
HSLhsl(233, 51%, 46%)
HSVhsv(233, 67%, 70%)
CMYKcmyk(67.4%, 59.6%, 0%, 30.2%)
CIE-LABlab(35.49, 29.54, -58.14)
CIE-LCHlch(35.49, 65.21, 296.94°)
OKLaboklab(45.55% 0.0064 -0.1675)
OKLCHoklch(45.55% 0.168 272.2)
XYZxyz(12.0955, 8.7475, 43.1619)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A48B2 #B2A43A
analogous
#3A84B2 #3A48B2 #683AB2
triadic
#3A48B2 #B23A48 #48B23A
tetradic
#3A48B2 #B23A84 #B2A43A #3AB268
square
#3A48B2 #B23A84 #B2A43A #3AB268
split-complementary
#3A48B2 #B2683A #84B23A
monochromatic
#1C2356 #2B3584 #3A48B2 #5F6BCB #8D96DA

Accessibility & contrast

On white

7.64
#3A48B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3A48B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A48B2
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A48B2#FFFFFF#000000##FFFFFF
##3A48B21.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006276
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a48b2;
/* rgb */ color: rgb(58, 72, 178);
/* oklch */ color: oklch(45.6% 0.168 272.2);
Tailwind
colors: {
  custom: {
    50: '#7f7aca',
    500: '#3a48b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a48b2;
$custom-light: #7f7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a48b2",
  "rgb": {
    "r": 58,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 233,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45551,
    "c": 0.16761,
    "h": 272.2
  },
  "luminance": 0.08749
}

Semantic roles & 50–950 ramp

primary
#3A48B2
secondary
#C4BD83
accent
#CA4DDA
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3A48B2

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

Preview Lab → · Contrast checker → · Palette generator →

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