#3A3EB7#3A3EB7

#3A3EB7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.186 H 274.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#3A3EB7
RGBrgb(58, 62, 183)
HSLhsl(238, 52%, 47%)
HSVhsv(238, 68%, 72%)
CMYKcmyk(68.3%, 66.1%, 0%, 28.2%)
CIE-LABlab(33.48, 37.63, -64.38)
CIE-LCHlch(33.48, 74.57, 300.30°)
OKLaboklab(44.2% 0.0139 -0.1859)
OKLCHoklch(44.2% 0.186 274.3)
XYZxyz(12.0120, 7.7626, 45.6559)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EB7 #B7B33A
analogous
#3A7DB7 #3A3EB7 #753AB7
triadic
#3A3EB7 #B73A3E #3EB73A
tetradic
#3A3EB7 #B73A7D #B7B33A #3AB775
square
#3A3EB7 #B73A7D #B7B33A #3AB775
split-complementary
#3A3EB7 #B7753A #7DB73A
monochromatic
#1D1F5A #2B2E89 #3A3EB7 #6165CD #9092DC

Accessibility & contrast

On white

8.23
#3A3EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3A3EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EB7
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EB7#FFFFFF#000000##FFFFFF
##3A3EB71.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a3eb7;
/* rgb */ color: rgb(58, 62, 183);
/* oklch */ color: oklch(44.2% 0.186 274.3);
Tailwind
colors: {
  custom: {
    50: '#8074ce',
    500: '#3a3eb7',
    950: '#000000',
  },
}
SCSS
$custom: #3a3eb7;
$custom-light: #8074ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3eb7",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 183
  },
  "hsl": {
    "h": 238.08,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44204,
    "c": 0.1864,
    "h": 274.3
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#3A3EB7
secondary
#C7C586
accent
#D74CDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A3EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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