#3A4E95#3A4E95

#3A4E95 is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.6% C 0.118 H 269.3°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#3A4E95
RGBrgb(58, 78, 149)
HSLhsl(227, 44%, 41%)
HSVhsv(227, 61%, 58%)
CMYKcmyk(61.1%, 47.7%, 0%, 41.6%)
CIE-LABlab(35.04, 15.20, -41.49)
CIE-LCHlch(35.04, 44.19, 290.12°)
OKLaboklab(44.55% -0.0014 -0.1185)
OKLCHoklch(44.55% 0.118 269.3)
XYZxyz(9.8923, 8.5174, 29.5507)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E95 #95813A
analogous
#3A7B95 #3A4E95 #533A95
triadic
#3A4E95 #953A4E #4E953A
tetradic
#3A4E95 #953A7B #95813A #3A9553
square
#3A4E95 #953A7B #95813A #3A9553
split-complementary
#3A4E95 #95533A #7B953A
monochromatic
#18203D #293769 #3A4E95 #5168BB #7D8ECC

Accessibility & contrast

On white

7.77
#3A4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3A4E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4E95
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4E95#FFFFFF#000000##FFFFFF
##3A4E951.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5798
Deuteranopia (green-blind)
#1D4F94
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a4e95;
/* rgb */ color: rgb(58, 78, 149);
/* oklch */ color: oklch(44.6% 0.118 269.3);
Tailwind
colors: {
  custom: {
    50: '#797fb4',
    500: '#3a4e95',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e95;
$custom-light: #797fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e95",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 226.813,
    "s": 43.961,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44552,
    "c": 0.11847,
    "h": 269.3
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#3A4E95
secondary
#B6A875
accent
#B854D4
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #3A4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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