#3A388C#3A388C

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

Color values

HEX#3A388C
RGBrgb(58, 56, 140)
HSLhsl(241, 43%, 38%)
HSVhsv(241, 60%, 55%)
CMYKcmyk(58.6%, 60%, 0%, 45.1%)
CIE-LABlab(28.43, 26.60, -46.63)
CIE-LCHlch(28.43, 53.68, 299.70°)
OKLaboklab(39.39% 0.0217 -0.1338)
OKLCHoklch(39.39% 0.136 279.2)
XYZxyz(7.8912, 5.6208, 25.4750)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A388C #8A8C38
analogous
#38608C #3A388C #64388C
triadic
#3A388C #8C3A38 #388C3A
tetradic
#3A388C #8C3860 #8A8C38 #388C64
square
#3A388C #8C3860 #8A8C38 #388C64
split-complementary
#3A388C #8C6438 #608C38
monochromatic
#161535 #282760 #3A388C #4D4AB7 #7876C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A388C#FFFFFF#000000##FFFFFF
##3A388C1.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)
#00468F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#0B4C5C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3a388c;
/* rgb */ color: rgb(58, 56, 140);
/* oklch */ color: oklch(39.4% 0.136 279.2);
Tailwind
colors: {
  custom: {
    50: '#786eae',
    500: '#3a388c',
    950: '#000000',
  },
}
SCSS
$custom: #3a388c;
$custom-light: #786eae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a388c",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 241.429,
    "s": 42.857,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39385,
    "c": 0.13555,
    "h": 279.2
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#3A388C
secondary
#B0B16F
accent
#D355D0
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #3A388C

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

Preview Lab → · Contrast checker → · Palette generator →

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