#3A3C8F#3A3C8F

#3A3C8F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.134 H 277.5°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#3A3C8F
RGBrgb(58, 60, 143)
HSLhsl(239, 42%, 39%)
HSVhsv(239, 59%, 56%)
CMYKcmyk(59.4%, 58%, 0%, 43.9%)
CIE-LABlab(29.70, 25.01, -46.43)
CIE-LCHlch(29.70, 52.74, 298.31°)
OKLaboklab(40.39% 0.0175 -0.1332)
OKLCHoklch(40.39% 0.134 277.5)
XYZxyz(8.3171, 6.1138, 26.7231)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3C8F #8F8D3A
analogous
#3A678F #3A3C8F #633A8F
triadic
#3A3C8F #8F3A3C #3C8F3A
tetradic
#3A3C8F #8F3A67 #8F8D3A #3A8F63
square
#3A3C8F #8F3A67 #8F8D3A #3A8F63
split-complementary
#3A3C8F #8F633A #678F3A
monochromatic
#171738 #282A63 #3A3C8F #4F51B7 #7A7CC9

Accessibility & contrast

On white

9.45
#3A3C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3A3C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3C8F
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3C8F#FFFFFF#000000##FFFFFF
##3A3C8F1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#02505F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3a3c8f;
/* rgb */ color: rgb(58, 60, 143);
/* oklch */ color: oklch(40.4% 0.134 277.5);
Tailwind
colors: {
  custom: {
    50: '#7971b0',
    500: '#3a3c8f',
    950: '#000000',
  },
}
SCSS
$custom: #3a3c8f;
$custom-light: #7971b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3c8f",
  "rgb": {
    "r": 58,
    "g": 60,
    "b": 143
  },
  "hsl": {
    "h": 238.588,
    "s": 42.289,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40394,
    "c": 0.13434,
    "h": 277.5
  },
  "luminance": 0.06114
}

Semantic roles & 50–950 ramp

primary
#3A3C8F
secondary
#B3B172
accent
#CF56D2
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A3C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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