#3A418F#3A418F

#3A418F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.4% C 0.127 H 275.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#3A418F
RGBrgb(58, 65, 143)
HSLhsl(235, 42%, 39%)
HSVhsv(235, 59%, 56%)
CMYKcmyk(59.4%, 54.5%, 0%, 43.9%)
CIE-LABlab(31.03, 21.70, -44.28)
CIE-LCHlch(31.03, 49.31, 296.10°)
OKLaboklab(41.39% 0.0122 -0.1268)
OKLCHoklch(41.39% 0.127 275.5)
XYZxyz(8.5915, 6.6627, 26.8146)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A418F #8F883A
analogous
#3A6C8F #3A418F #5E3A8F
triadic
#3A418F #8F3A41 #418F3A
tetradic
#3A418F #8F3A6C #8F883A #3A8F5E
square
#3A418F #8F3A6C #8F883A #3A8F5E
split-complementary
#3A418F #8F5E3A #6C8F3A
monochromatic
#171938 #282D63 #3A418F #4F57B7 #7A81C9

Accessibility & contrast

On white

9.00
#3A418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3A418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A418F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A418F#FFFFFF#000000##FFFFFF
##3A418F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114D92
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3a418f;
/* rgb */ color: rgb(58, 65, 143);
/* oklch */ color: oklch(41.4% 0.127 275.5);
Tailwind
colors: {
  custom: {
    50: '#7875b0',
    500: '#3a418f',
    950: '#000000',
  },
}
SCSS
$custom: #3a418f;
$custom-light: #7875b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a418f",
  "rgb": {
    "r": 58,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 235.059,
    "s": 42.289,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41387,
    "c": 0.1274,
    "h": 275.5
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#3A418F
secondary
#B3AD72
accent
#C856D2
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0810
muted
#7C7B7F

Preview Lab

Preview with #3A418F

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

Preview Lab → · Contrast checker → · Palette generator →

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