#3A337D#3A337D

#3A337D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.121 H 283.1°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#3A337D
RGBrgb(58, 51, 125)
HSLhsl(246, 42%, 35%)
HSVhsv(246, 59%, 49%)
CMYKcmyk(53.6%, 59.2%, 0%, 51%)
CIE-LABlab(26.00, 24.77, -41.20)
CIE-LCHlch(26.00, 48.08, 301.01°)
OKLaboklab(37.22% 0.0274 -0.1179)
OKLCHoklch(37.22% 0.121 283.1)
XYZxyz(6.6293, 4.7475, 19.9651)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A337D #767D33
analogous
#33517D #3A337D #5F337D
triadic
#3A337D #7D3A33 #337D3A
tetradic
#3A337D #7D3351 #767D33 #337D5F
square
#3A337D #7D3351 #767D33 #337D5F
split-complementary
#3A337D #7D5F33 #517D33
monochromatic
#121026 #262152 #3A337D #4E45A8 #7169C2

Accessibility & contrast

On white

10.77
#3A337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A337D
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A337D#FFFFFF#000000##FFFFFF
##3A337D1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#1F4452
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a337d;
/* rgb */ color: rgb(58, 51, 125);
/* oklch */ color: oklch(37.2% 0.121 283.1);
Tailwind
colors: {
  custom: {
    50: '#766ba3',
    500: '#3a337d',
    950: '#000000',
  },
}
SCSS
$custom: #3a337d;
$custom-light: #766ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a337d",
  "rgb": {
    "r": 58,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 245.676,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37223,
    "c": 0.12103,
    "h": 283.1
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#3A337D
secondary
#A3AA62
accent
#D256C6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3A337D

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

Preview Lab → · Contrast checker → · Palette generator →

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