#3A4E97#3A4E97

#3A4E97 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.121 H 269.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#3A4E97
RGBrgb(58, 78, 151)
HSLhsl(227, 44%, 41%)
HSVhsv(227, 62%, 59%)
CMYKcmyk(61.6%, 48.3%, 0%, 40.8%)
CIE-LABlab(35.17, 15.92, -42.50)
CIE-LCHlch(35.17, 45.38, 290.53°)
OKLaboklab(44.69% -0.0011 -0.1214)
OKLCHoklch(44.69% 0.121 269.5)
XYZxyz(10.0533, 8.5819, 30.3988)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E97 #97833A
analogous
#3A7C97 #3A4E97 #543A97
triadic
#3A4E97 #973A4E #4E973A
tetradic
#3A4E97 #973A7C #97833A #3A9754
square
#3A4E97 #973A7C #97833A #3A9754
split-complementary
#3A4E97 #97543A #7C973A
monochromatic
#18203F #29376B #3A4E97 #5269BC #7E8FCD

Accessibility & contrast

On white

7.73
#3A4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3A4E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4E97
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4E97#FFFFFF#000000##FFFFFF
##3A4E971.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#1A4F95
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a4e97;
/* rgb */ color: rgb(58, 78, 151);
/* oklch */ color: oklch(44.7% 0.121 269.5);
Tailwind
colors: {
  custom: {
    50: '#797fb6',
    500: '#3a4e97',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e97;
$custom-light: #797fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e97",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 227.097,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44691,
    "c": 0.12143,
    "h": 269.5
  },
  "luminance": 0.08583
}

Semantic roles & 50–950 ramp

primary
#3A4E97
secondary
#B7A976
accent
#B954D4
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #3A4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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