#3A4E9D#3A4E9D

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

Color values

HEX#3A4E9D
RGBrgb(58, 78, 157)
HSLhsl(228, 46%, 42%)
HSVhsv(228, 63%, 62%)
CMYKcmyk(63.1%, 50.3%, 0%, 38.4%)
CIE-LABlab(35.56, 18.07, -45.49)
CIE-LCHlch(35.56, 48.95, 291.67°)
OKLaboklab(45.12% -0.0004 -0.1302)
OKLCHoklch(45.12% 0.13 269.8)
XYZxyz(10.5531, 8.7817, 33.0307)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E9D #9D893A
analogous
#3A809D #3A4E9D #583A9D
triadic
#3A4E9D #9D3A4E #4E9D3A
tetradic
#3A4E9D #9D3A80 #9D893A #3A9D58
square
#3A4E9D #9D3A80 #9D893A #3A9D58
split-complementary
#3A4E9D #9D583A #809D3A
monochromatic
#192244 #293870 #3A4E9D #546AC0 #8191D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A4E9D#FFFFFF#000000##FFFFFF
##3A4E9D1.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)
#2458A0
Deuteranopia (green-blind)
#0E4F9B
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3a4e9d;
/* rgb */ color: rgb(58, 78, 157);
/* oklch */ color: oklch(45.1% 0.130 269.8);
Tailwind
colors: {
  custom: {
    50: '#7a7fba',
    500: '#3a4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e9d;
$custom-light: #7a7fba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e9d",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 227.879,
    "s": 46.047,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45117,
    "c": 0.13021,
    "h": 269.8
  },
  "luminance": 0.08783
}

Semantic roles & 50–950 ramp

primary
#3A4E9D
secondary
#BAAD79
accent
#BB52D6
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3A4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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