#3A4898#3A4898

#3A4898 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.5% C 0.131 H 272.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#3A4898
RGBrgb(58, 72, 152)
HSLhsl(231, 45%, 41%)
HSVhsv(231, 62%, 60%)
CMYKcmyk(61.8%, 52.6%, 0%, 40.4%)
CIE-LABlab(33.56, 20.24, -45.68)
CIE-LCHlch(33.56, 49.97, 293.90°)
OKLaboklab(43.5% 0.0054 -0.1309)
OKLCHoklch(43.5% 0.131 272.4)
XYZxyz(9.7279, 7.8005, 30.6927)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4898 #988A3A
analogous
#3A7798 #3A4898 #5B3A98
triadic
#3A4898 #983A48 #48983A
tetradic
#3A4898 #983A77 #988A3A #3A985B
square
#3A4898 #983A77 #988A3A #3A985B
split-complementary
#3A4898 #985B3A #77983A
monochromatic
#181E3F #29336C #3A4898 #5262BD #7E8ACE

Accessibility & contrast

On white

8.20
#3A4898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3A4898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4898
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4898#FFFFFF#000000##FFFFFF
##3A48981.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A539B
Deuteranopia (green-blind)
#004B96
Tritanopia (blue-blind)
#005A69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a4898;
/* rgb */ color: rgb(58, 72, 152);
/* oklch */ color: oklch(43.5% 0.131 272.4);
Tailwind
colors: {
  custom: {
    50: '#7a7ab7',
    500: '#3a4898',
    950: '#000000',
  },
}
SCSS
$custom: #3a4898;
$custom-light: #7a7ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4898",
  "rgb": {
    "r": 58,
    "g": 72,
    "b": 152
  },
  "hsl": {
    "h": 231.064,
    "s": 44.762,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43498,
    "c": 0.13097,
    "h": 272.4
  },
  "luminance": 0.07801
}

Semantic roles & 50–950 ramp

primary
#3A4898
secondary
#B8AE76
accent
#C153D4
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0911
muted
#7C7B80

Preview Lab

Preview with #3A4898

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

Preview Lab → · Contrast checker → · Palette generator →

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