#3A4E98#3A4E98

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

Color values

HEX#3A4E98
RGBrgb(58, 78, 152)
HSLhsl(227, 45%, 41%)
HSVhsv(227, 62%, 60%)
CMYKcmyk(61.8%, 48.7%, 0%, 40.4%)
CIE-LABlab(35.23, 16.28, -43.00)
CIE-LCHlch(35.23, 45.98, 290.73°)
OKLaboklab(44.76% -0.001 -0.1229)
OKLCHoklch(44.76% 0.123 269.5)
XYZxyz(10.1349, 8.6145, 30.8283)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E98 #98843A
analogous
#3A7D98 #3A4E98 #553A98
triadic
#3A4E98 #983A4E #4E983A
tetradic
#3A4E98 #983A7D #98843A #3A9855
square
#3A4E98 #983A7D #98843A #3A9855
split-complementary
#3A4E98 #98553A #7D983A
monochromatic
#18213F #29376C #3A4E98 #5269BD #7E8FCE

Accessibility & contrast

On white

7.71
#3A4E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A4E98
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4E98#FFFFFF#000000##FFFFFF
##3A4E981.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579B
Deuteranopia (green-blind)
#194F96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a4e98;
/* rgb */ color: rgb(58, 78, 152);
/* oklch */ color: oklch(44.8% 0.123 269.5);
Tailwind
colors: {
  custom: {
    50: '#797fb7',
    500: '#3a4e98',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e98;
$custom-light: #797fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e98",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 227.234,
    "s": 44.762,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44761,
    "c": 0.1229,
    "h": 269.5
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#3A4E98
secondary
#B8AA76
accent
#B953D4
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #3A4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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