#3A4EB7#3A4EB7

#3A4EB7 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.167 H 270.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#3A4EB7
RGBrgb(58, 78, 183)
HSLhsl(230, 52%, 47%)
HSVhsv(230, 68%, 72%)
CMYKcmyk(68.3%, 57.4%, 0%, 28.2%)
CIE-LABlab(37.42, 27.45, -57.96)
CIE-LCHlch(37.42, 64.13, 295.34°)
OKLaboklab(47.11% 0.0014 -0.1669)
OKLCHoklch(47.11% 0.167 270.5)
XYZxyz(13.0137, 9.7660, 45.9898)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4EB7 #B7A33A
analogous
#3A8DB7 #3A4EB7 #653AB7
triadic
#3A4EB7 #B73A4E #4EB73A
tetradic
#3A4EB7 #B73A8D #B7A33A #3AB765
square
#3A4EB7 #B73A8D #B7A33A #3AB765
split-complementary
#3A4EB7 #B7653A #8DB73A
monochromatic
#1D265A #2B3A89 #3A4EB7 #6172CD #909CDC

Accessibility & contrast

On white

7.11
#3A4EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3A4EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4EB7
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4EB7#FFFFFF#000000##FFFFFF
##3A4EB71.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3a4eb7;
/* rgb */ color: rgb(58, 78, 183);
/* oklch */ color: oklch(47.1% 0.167 270.5);
Tailwind
colors: {
  custom: {
    50: '#7f7fcd',
    500: '#3a4eb7',
    950: '#000000',
  },
}
SCSS
$custom: #3a4eb7;
$custom-light: #7f7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4eb7",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 230.4,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47107,
    "c": 0.16691,
    "h": 270.5
  },
  "luminance": 0.09767
}

Semantic roles & 50–950 ramp

primary
#3A4EB7
secondary
#C7BC86
accent
#C44CDB
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3A4EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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