#3A3DBA#3A3DBA

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

Color values

HEX#3A3DBA
RGBrgb(58, 61, 186)
HSLhsl(239, 52%, 48%)
HSVhsv(239, 69%, 73%)
CMYKcmyk(68.8%, 67.2%, 0%, 27.1%)
CIE-LABlab(33.52, 39.27, -66.09)
CIE-LCHlch(33.52, 76.87, 300.72°)
OKLaboklab(44.31% 0.0143 -0.1909)
OKLCHoklch(44.31% 0.191 274.3)
XYZxyz(12.2737, 7.7811, 47.2999)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3DBA #BAB73A
analogous
#3A7DBA #3A3DBA #773ABA
triadic
#3A3DBA #BA3A3D #3DBA3A
tetradic
#3A3DBA #BA3A7D #BAB73A #3ABA77
square
#3A3DBA #BA3A7D #BAB73A #3ABA77
split-complementary
#3A3DBA #BA773A #7DBA3A
monochromatic
#1D1E5D #2B2E8B #3A3DBA #6365CE #9293DD

Accessibility & contrast

On white

8.21
#3A3DBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A3DBA
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3DBA#FFFFFF#000000##FFFFFF
##3A3DBA1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a3dba;
/* rgb */ color: rgb(58, 61, 186);
/* oklch */ color: oklch(44.3% 0.191 274.3);
Tailwind
colors: {
  custom: {
    50: '#8173d0',
    500: '#3a3dba',
    950: '#000000',
  },
}
SCSS
$custom: #3a3dba;
$custom-light: #8173d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3dba",
  "rgb": {
    "r": 58,
    "g": 61,
    "b": 186
  },
  "hsl": {
    "h": 238.594,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44314,
    "c": 0.19143,
    "h": 274.3
  },
  "luminance": 0.07782
}

Semantic roles & 50–950 ramp

primary
#3A3DBA
secondary
#C8C688
accent
#D94CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A3DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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