#3A3A9B#3A3A9B

#3A3A9B is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.154 H 277.2°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#3A3A9B
RGBrgb(58, 58, 155)
HSLhsl(240, 46%, 42%)
HSVhsv(240, 63%, 61%)
CMYKcmyk(62.6%, 62.6%, 0%, 39.2%)
CIE-LABlab(30.14, 30.48, -53.06)
CIE-LCHlch(30.14, 61.19, 299.88°)
OKLaboklab(41.02% 0.0193 -0.1527)
OKLCHoklch(41.02% 0.154 277.2)
XYZxyz(9.1725, 6.2915, 31.7350)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3A9B #9B9B3A
analogous
#3A6B9B #3A3A9B #6B3A9B
triadic
#3A3A9B #9B3A3A #3A9B3A
tetradic
#3A3A9B #9B3A6B #9B9B3A #3A9B6B
square
#3A3A9B #9B3A6B #9B9B3A #3A9B6B
split-complementary
#3A3A9B #9B6B3A #6B9B3A
monochromatic
#191942 #29296E #3A3A9B #5353BF #8080CF

Accessibility & contrast

On white

9.30
#3A3A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#3A3A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3A9B
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3A9B#FFFFFF#000000##FFFFFF
##3A3A9B1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3a3a9b;
/* rgb */ color: rgb(58, 58, 155);
/* oklch */ color: oklch(41.0% 0.154 277.2);
Tailwind
colors: {
  custom: {
    50: '#7b70b9',
    500: '#3a3a9b',
    950: '#000000',
  },
}
SCSS
$custom: #3a3a9b;
$custom-light: #7b70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3a9b",
  "rgb": {
    "r": 58,
    "g": 58,
    "b": 155
  },
  "hsl": {
    "h": 240,
    "s": 45.54,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41016,
    "c": 0.15391,
    "h": 277.2
  },
  "luminance": 0.06292
}

Semantic roles & 50–950 ramp

primary
#3A3A9B
secondary
#B9B978
accent
#D553D5
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3A3A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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