#3A4E9C#3A4E9C

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

Color values

HEX#3A4E9C
RGBrgb(58, 78, 156)
HSLhsl(228, 46%, 42%)
HSVhsv(228, 63%, 61%)
CMYKcmyk(62.8%, 50%, 0%, 38.8%)
CIE-LABlab(35.49, 17.71, -44.99)
CIE-LCHlch(35.49, 48.35, 291.49°)
OKLaboklab(45.05% -0.0005 -0.1288)
OKLCHoklch(45.05% 0.129 269.8)
XYZxyz(10.4680, 8.7477, 32.5829)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E9C #9C883A
analogous
#3A7F9C #3A4E9C #573A9C
triadic
#3A4E9C #9C3A4E #4E9C3A
tetradic
#3A4E9C #9C3A7F #9C883A #3A9C57
square
#3A4E9C #9C3A7F #9C883A #3A9C57
split-complementary
#3A4E9C #9C573A #7F9C3A
monochromatic
#192143 #29386F #3A4E9C #546ABF #8091D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A4E9C#FFFFFF#000000##FFFFFF
##3A4E9C1.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)
#25589F
Deuteranopia (green-blind)
#104F9A
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a4e9c;
/* rgb */ color: rgb(58, 78, 156);
/* oklch */ color: oklch(45.0% 0.129 269.8);
Tailwind
colors: {
  custom: {
    50: '#7a7fba',
    500: '#3a4e9c',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e9c;
$custom-light: #7a7fba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e9c",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 227.755,
    "s": 45.794,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45045,
    "c": 0.12876,
    "h": 269.8
  },
  "luminance": 0.08749
}

Semantic roles & 50–950 ramp

primary
#3A4E9C
secondary
#BAAC78
accent
#BB52D5
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #3A4E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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