#3A388F#3A388F

#3A388F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.140 H 278.9°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#3A388F
RGBrgb(58, 56, 143)
HSLhsl(241, 44%, 39%)
HSVhsv(241, 61%, 56%)
CMYKcmyk(59.4%, 60.8%, 0%, 43.9%)
CIE-LABlab(28.67, 27.63, -48.10)
CIE-LCHlch(28.67, 55.47, 299.87°)
OKLaboklab(39.63% 0.0217 -0.1381)
OKLCHoklch(39.63% 0.14 278.9)
XYZxyz(8.1154, 5.7105, 26.6559)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A388F #8D8F38
analogous
#38628F #3A388F #66388F
triadic
#3A388F #8F3A38 #388F3A
tetradic
#3A388F #8F3862 #8D8F38 #388F66
square
#3A388F #8F3862 #8D8F38 #388F66
split-complementary
#3A388F #8F6638 #628F38
monochromatic
#161637 #282763 #3A388F #4E4BB9 #7977CA

Accessibility & contrast

On white

9.80
#3A388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3A388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A388F
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A388F#FFFFFF#000000##FFFFFF
##3A388F1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#034D5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3a388f;
/* rgb */ color: rgb(58, 56, 143);
/* oklch */ color: oklch(39.6% 0.140 278.9);
Tailwind
colors: {
  custom: {
    50: '#796fb0',
    500: '#3a388f',
    950: '#000000',
  },
}
SCSS
$custom: #3a388f;
$custom-light: #796fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a388f",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 241.379,
    "s": 43.719,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39633,
    "c": 0.13982,
    "h": 278.9
  },
  "luminance": 0.05711
}

Semantic roles & 50–950 ramp

primary
#3A388F
secondary
#B1B370
accent
#D354D1
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #3A388F

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

Preview Lab → · Contrast checker → · Palette generator →

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