#3A378F#3A378F

#3A378F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.141 H 279.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#3A378F
RGBrgb(58, 55, 143)
HSLhsl(242, 44%, 39%)
HSVhsv(242, 62%, 56%)
CMYKcmyk(59.4%, 61.5%, 0%, 43.9%)
CIE-LABlab(28.42, 28.28, -48.51)
CIE-LCHlch(28.42, 56.15, 300.24°)
OKLaboklab(39.45% 0.0227 -0.1393)
OKLCHoklch(39.45% 0.141 279.2)
XYZxyz(8.0675, 5.6145, 26.6399)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A378F #8C8F37
analogous
#37608F #3A378F #66378F
triadic
#3A378F #8F3A37 #378F3A
tetradic
#3A378F #8F3760 #8C8F37 #378F66
square
#3A378F #8F3760 #8C8F37 #378F66
split-complementary
#3A378F #8F6637 #608F37
monochromatic
#161537 #282663 #3A378F #4E4AB9 #7976CA

Accessibility & contrast

On white

9.89
#3A378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3A378F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A378F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A378F#FFFFFF#000000##FFFFFF
##3A378F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#044C5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a378f;
/* rgb */ color: rgb(58, 55, 143);
/* oklch */ color: oklch(39.4% 0.141 279.2);
Tailwind
colors: {
  custom: {
    50: '#796eb0',
    500: '#3a378f',
    950: '#000000',
  },
}
SCSS
$custom: #3a378f;
$custom-light: #796eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a378f",
  "rgb": {
    "r": 58,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 242.045,
    "s": 44.444,
    "l": 38.824
  },
  "oklch": {
    "l": 0.39448,
    "c": 0.14118,
    "h": 279.2
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#3A378F
secondary
#B1B36F
accent
#D454D0
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A378F

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

Preview Lab → · Contrast checker → · Palette generator →

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