#3A4F97#3A4F97

#3A4F97 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.120 H 268.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#3A4F97
RGBrgb(58, 79, 151)
HSLhsl(226, 44%, 41%)
HSVhsv(226, 62%, 59%)
CMYKcmyk(61.6%, 47.7%, 0%, 40.8%)
CIE-LABlab(35.45, 15.26, -42.04)
CIE-LCHlch(35.45, 44.73, 289.94°)
OKLaboklab(44.91% -0.0022 -0.1201)
OKLCHoklch(44.91% 0.12 268.9)
XYZxyz(10.1249, 8.7250, 30.4227)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4F97 #97823A
analogous
#3A7D97 #3A4F97 #533A97
triadic
#3A4F97 #973A4F #4F973A
tetradic
#3A4F97 #973A7D #97823A #3A9753
square
#3A4F97 #973A7D #97823A #3A9753
split-complementary
#3A4F97 #97533A #7D973A
monochromatic
#18213F #29386B #3A4F97 #526ABC #7E90CD

Accessibility & contrast

On white

7.65
#3A4F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A4F97
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4F97#FFFFFF#000000##FFFFFF
##3A4F971.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a4f97;
/* rgb */ color: rgb(58, 79, 151);
/* oklch */ color: oklch(44.9% 0.120 268.9);
Tailwind
colors: {
  custom: {
    50: '#7980b6',
    500: '#3a4f97',
    950: '#000000',
  },
}
SCSS
$custom: #3a4f97;
$custom-light: #7980b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4f97",
  "rgb": {
    "r": 58,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 226.452,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44907,
    "c": 0.1201,
    "h": 268.9
  },
  "luminance": 0.08726
}

Semantic roles & 50–950 ramp

primary
#3A4F97
secondary
#B7A876
accent
#B754D4
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #3A4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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