#3A406C#3A406C

#3A406C is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.8% C 0.075 H 276.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#3A406C
RGBrgb(58, 64, 108)
HSLhsl(233, 30%, 33%)
HSVhsv(233, 46%, 42%)
CMYKcmyk(46.3%, 40.7%, 0%, 57.6%)
CIE-LABlab(28.51, 10.34, -26.43)
CIE-LCHlch(28.51, 28.38, 291.36°)
OKLaboklab(38.76% 0.0084 -0.0745)
OKLCHoklch(38.76% 0.075 276.4)
XYZxyz(6.2843, 5.6487, 14.9436)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A406C #6C663A
analogous
#3A596C #3A406C #4D3A6C
triadic
#3A406C #6C3A40 #406C3A
tetradic
#3A406C #6C3A59 #6C663A #3A6C4D
square
#3A406C #6C3A59 #6C663A #3A6C4D
split-complementary
#3A406C #6C4D3A #596C3A
monochromatic
#0F111C #252844 #3A406C #4F5894 #6F77B2

Accessibility & contrast

On white

9.86
#3A406C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3A406C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A406C
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A406C#FFFFFF#000000##FFFFFF
##3A406C1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30456E
Deuteranopia (green-blind)
#2C416B
Tritanopia (blue-blind)
#294950
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a406c;
/* rgb */ color: rgb(58, 64, 108);
/* oklch */ color: oklch(38.8% 0.075 276.4);
Tailwind
colors: {
  custom: {
    50: '#737496',
    500: '#3a406c',
    950: '#000000',
  },
}
SCSS
$custom: #3a406c;
$custom-light: #737496;
$custom-dark: #000000;
JSON
{
  "hex": "#3a406c",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 108
  },
  "hsl": {
    "h": 232.8,
    "s": 30.12,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38755,
    "c": 0.07493,
    "h": 276.4
  },
  "luminance": 0.05649
}

Semantic roles & 50–950 ramp

primary
#3A406C
secondary
#9B9566
accent
#BA61C6
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08080D
muted
#7B7B7E

Preview Lab

Preview with #3A406C

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

Preview Lab → · Contrast checker → · Palette generator →

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