#3A3EB5#3A3EB5

#3A3EB5 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.0% C 0.184 H 274.4°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#3A3EB5
RGBrgb(58, 62, 181)
HSLhsl(238, 51%, 47%)
HSVhsv(238, 68%, 71%)
CMYKcmyk(68%, 65.7%, 0%, 29%)
CIE-LABlab(33.31, 36.94, -63.48)
CIE-LCHlch(33.31, 73.45, 300.19°)
OKLaboklab(44.02% 0.0141 -0.1833)
OKLCHoklch(44.02% 0.184 274.4)
XYZxyz(11.8053, 7.6799, 44.5673)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EB5 #B5B13A
analogous
#3A7CB5 #3A3EB5 #743AB5
triadic
#3A3EB5 #B53A3E #3EB53A
tetradic
#3A3EB5 #B53A7C #B5B13A #3AB574
square
#3A3EB5 #B53A7C #B5B13A #3AB574
split-complementary
#3A3EB5 #B5743A #7CB53A
monochromatic
#1C1E58 #2B2E87 #3A3EB5 #6064CC #8E91DB

Accessibility & contrast

On white

8.28
#3A3EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3A3EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EB5
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EB5#FFFFFF#000000##FFFFFF
##3A3EB51.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3a3eb5;
/* rgb */ color: rgb(58, 62, 181);
/* oklch */ color: oklch(44.0% 0.184 274.4);
Tailwind
colors: {
  custom: {
    50: '#8074cc',
    500: '#3a3eb5',
    950: '#000000',
  },
}
SCSS
$custom: #3a3eb5;
$custom-light: #8074cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3eb5",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 238.049,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44021,
    "c": 0.1838,
    "h": 274.4
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#3A3EB5
secondary
#C6C485
accent
#D64DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #3A3EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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