#3A3FA8#3A3FA8

#3A3FA8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.165 H 274.9°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#3A3FA8
RGBrgb(58, 63, 168)
HSLhsl(237, 49%, 44%)
HSVhsv(237, 65%, 66%)
CMYKcmyk(65.5%, 62.5%, 0%, 34.1%)
CIE-LABlab(32.44, 31.80, -57.16)
CIE-LCHlch(32.44, 65.41, 299.09°)
OKLaboklab(43.04% 0.0142 -0.1647)
OKLCHoklch(43.04% 0.165 274.9)
XYZxyz(10.5880, 7.2808, 37.8856)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FA8 #A8A33A
analogous
#3A76A8 #3A3FA8 #6C3AA8
triadic
#3A3FA8 #A83A3F #3FA83A
tetradic
#3A3FA8 #A83A76 #A8A33A #3AA86C
square
#3A3FA8 #A83A76 #A8A33A #3AA86C
split-complementary
#3A3FA8 #A86C3A #76A83A
monochromatic
#1B1D4D #2A2E7B #3A3FA8 #595EC6 #878AD6

Accessibility & contrast

On white

8.55
#3A3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3A3FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FA8
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FA8#FFFFFF#000000##FFFFFF
##3A3FA81.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3a3fa8;
/* rgb */ color: rgb(58, 63, 168);
/* oklch */ color: oklch(43.0% 0.165 274.9);
Tailwind
colors: {
  custom: {
    50: '#7d74c3',
    500: '#3a3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fa8;
$custom-light: #7d74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fa8",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 237.273,
    "s": 48.673,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43042,
    "c": 0.16531,
    "h": 274.9
  },
  "luminance": 0.07282
}

Semantic roles & 50–950 ramp

primary
#3A3FA8
secondary
#C0BD7E
accent
#D250D8
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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