#3A4E8F#3A4E8F

#3A4E8F is a dark, moderate blue. Relative luminance 0.083; OKLCH L 44.1% C 0.110 H 268.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#3A4E8F
RGBrgb(58, 78, 143)
HSLhsl(226, 42%, 39%)
HSVhsv(226, 59%, 56%)
CMYKcmyk(59.4%, 45.5%, 0%, 43.9%)
CIE-LABlab(34.66, 13.06, -38.45)
CIE-LCHlch(34.66, 40.60, 288.77°)
OKLaboklab(44.14% -0.0024 -0.1095)
OKLCHoklch(44.14% 0.11 268.7)
XYZxyz(9.4256, 8.3307, 27.0926)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A4E8F #8F7B3A
analogous
#3A798F #3A4E8F #503A8F
triadic
#3A4E8F #8F3A4E #4E8F3A
tetradic
#3A4E8F #8F3A79 #8F7B3A #3A8F50
square
#3A4E8F #8F3A79 #8F7B3A #3A8F50
split-complementary
#3A4E8F #8F503A #798F3A
monochromatic
#171F38 #283663 #3A4E8F #4F67B7 #7A8DC9

Accessibility & contrast

On white

7.88
#3A4E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3A4E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A4E8F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A4E8F#FFFFFF#000000##FFFFFF
##3A4E8F1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315691
Deuteranopia (green-blind)
#254E8E
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a4e8f;
/* rgb */ color: rgb(58, 78, 143);
/* oklch */ color: oklch(44.1% 0.110 268.7);
Tailwind
colors: {
  custom: {
    50: '#787fb0',
    500: '#3a4e8f',
    950: '#000000',
  },
}
SCSS
$custom: #3a4e8f;
$custom-light: #787fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a4e8f",
  "rgb": {
    "r": 58,
    "g": 78,
    "b": 143
  },
  "hsl": {
    "h": 225.882,
    "s": 42.289,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44143,
    "c": 0.10954,
    "h": 268.7
  },
  "luminance": 0.08331
}

Semantic roles & 50–950 ramp

primary
#3A4E8F
secondary
#B3A372
accent
#B556D2
background
#F7F7FA
surface
#EEEEF5
border
#C9C9CF
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #3A4E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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