#3A3EB9#3A3EB9

#3A3EB9 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.4% C 0.189 H 274.2°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#3A3EB9
RGBrgb(58, 62, 185)
HSLhsl(238, 52%, 48%)
HSVhsv(238, 69%, 73%)
CMYKcmyk(68.6%, 66.5%, 0%, 27.5%)
CIE-LABlab(33.66, 38.31, -65.27)
CIE-LCHlch(33.66, 75.68, 300.41°)
OKLaboklab(44.39% 0.0137 -0.1885)
OKLCHoklch(44.39% 0.189 274.2)
XYZxyz(12.2216, 7.8464, 46.7600)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EB9 #B9B53A
analogous
#3A7EB9 #3A3EB9 #753AB9
triadic
#3A3EB9 #B93A3E #3EB93A
tetradic
#3A3EB9 #B93A7E #B9B53A #3AB975
square
#3A3EB9 #B93A7E #B9B53A #3AB975
split-complementary
#3A3EB9 #B9753A #7EB93A
monochromatic
#1D1F5C #2B2E8A #3A3EB9 #6266CE #9193DC

Accessibility & contrast

On white

8.17
#3A3EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3A3EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EB9
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EB9#FFFFFF#000000##FFFFFF
##3A3EB91.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a3eb9;
/* rgb */ color: rgb(58, 62, 185);
/* oklch */ color: oklch(44.4% 0.189 274.2);
Tailwind
colors: {
  custom: {
    50: '#8174cf',
    500: '#3a3eb9',
    950: '#000000',
  },
}
SCSS
$custom: #3a3eb9;
$custom-light: #8174cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3eb9",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 185
  },
  "hsl": {
    "h": 238.11,
    "s": 52.263,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44387,
    "c": 0.18899,
    "h": 274.2
  },
  "luminance": 0.07848
}

Semantic roles & 50–950 ramp

primary
#3A3EB9
secondary
#C7C587
accent
#D74CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A3EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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