#3A3EB8#3A3EB8

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

Color values

HEX#3A3EB8
RGBrgb(58, 62, 184)
HSLhsl(238, 52%, 47%)
HSVhsv(238, 68%, 72%)
CMYKcmyk(68.5%, 66.3%, 0%, 27.8%)
CIE-LABlab(33.57, 37.97, -64.83)
CIE-LCHlch(33.57, 75.13, 300.36°)
OKLaboklab(44.3% 0.0138 -0.1872)
OKLCHoklch(44.3% 0.188 274.2)
XYZxyz(12.1164, 7.8044, 46.2060)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3EB8 #B8B43A
analogous
#3A7DB8 #3A3EB8 #753AB8
triadic
#3A3EB8 #B83A3E #3EB83A
tetradic
#3A3EB8 #B83A7D #B8B43A #3AB875
square
#3A3EB8 #B83A7D #B8B43A #3AB875
split-complementary
#3A3EB8 #B8753A #7DB83A
monochromatic
#1D1F5B #2B2E89 #3A3EB8 #6265CD #9093DC

Accessibility & contrast

On white

8.20
#3A3EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3A3EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3EB8
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3EB8#FFFFFF#000000##FFFFFF
##3A3EB81.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a3eb8;
/* rgb */ color: rgb(58, 62, 184);
/* oklch */ color: oklch(44.3% 0.188 274.2);
Tailwind
colors: {
  custom: {
    50: '#8174ce',
    500: '#3a3eb8',
    950: '#000000',
  },
}
SCSS
$custom: #3a3eb8;
$custom-light: #8174ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3eb8",
  "rgb": {
    "r": 58,
    "g": 62,
    "b": 184
  },
  "hsl": {
    "h": 238.095,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44295,
    "c": 0.1877,
    "h": 274.2
  },
  "luminance": 0.07805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A3EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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