#3A3FB8#3A3FB8

#3A3FB8 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.5% C 0.187 H 274.0°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#3A3FB8
RGBrgb(58, 63, 184)
HSLhsl(238, 52%, 47%)
HSVhsv(238, 68%, 72%)
CMYKcmyk(68.5%, 65.8%, 0%, 27.8%)
CIE-LABlab(33.80, 37.35, -64.45)
CIE-LCHlch(33.80, 74.49, 300.10°)
OKLaboklab(44.46% 0.0131 -0.1861)
OKLCHoklch(44.46% 0.187 274)
XYZxyz(12.1713, 7.9141, 46.2243)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FB8 #B8B33A
analogous
#3A7EB8 #3A3FB8 #743AB8
triadic
#3A3FB8 #B83A3F #3FB83A
tetradic
#3A3FB8 #B83A7E #B8B33A #3AB874
square
#3A3FB8 #B83A7E #B8B33A #3AB874
split-complementary
#3A3FB8 #B8743A #7EB83A
monochromatic
#1D1F5B #2B2F89 #3A3FB8 #6266CD #9093DC

Accessibility & contrast

On white

8.13
#3A3FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3A3FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FB8
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FB8#FFFFFF#000000##FFFFFF
##3A3FB81.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BC
Deuteranopia (green-blind)
#004AB6
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a3fb8;
/* rgb */ color: rgb(58, 63, 184);
/* oklch */ color: oklch(44.5% 0.187 274.0);
Tailwind
colors: {
  custom: {
    50: '#8174ce',
    500: '#3a3fb8',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fb8;
$custom-light: #8174ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fb8",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 184
  },
  "hsl": {
    "h": 237.619,
    "s": 52.066,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44464,
    "c": 0.18654,
    "h": 274
  },
  "luminance": 0.07915
}

Semantic roles & 50–950 ramp

primary
#3A3FB8
secondary
#C7C487
accent
#D64CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A3FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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