#3A42B4#3A42B4

#3A42B4 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.6% C 0.178 H 273.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#3A42B4
RGBrgb(58, 66, 180)
HSLhsl(236, 51%, 47%)
HSVhsv(236, 68%, 71%)
CMYKcmyk(67.8%, 63.3%, 0%, 29.4%)
CIE-LABlab(34.17, 34.08, -61.48)
CIE-LCHlch(34.17, 70.30, 299.00°)
OKLaboklab(44.63% 0.0112 -0.1774)
OKLCHoklch(44.63% 0.178 273.6)
XYZxyz(11.9286, 8.0902, 44.1041)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42B4 #B4AC3A
analogous
#3A7FB4 #3A42B4 #6F3AB4
triadic
#3A42B4 #B43A42 #42B43A
tetradic
#3A42B4 #B43A7F #B4AC3A #3AB46F
square
#3A42B4 #B43A7F #B4AC3A #3AB46F
split-complementary
#3A42B4 #B46F3A #7FB43A
monochromatic
#1C2057 #2B3186 #3A42B4 #6067CC #8E93DB

Accessibility & contrast

On white

8.02
#3A42B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3A42B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42B4
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42B4#FFFFFF#000000##FFFFFF
##3A42B41.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a42b4;
/* rgb */ color: rgb(58, 66, 180);
/* oklch */ color: oklch(44.6% 0.178 273.6);
Tailwind
colors: {
  custom: {
    50: '#7f76cb',
    500: '#3a42b4',
    950: '#000000',
  },
}
SCSS
$custom: #3a42b4;
$custom-light: #7f76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42b4",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 236.066,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44625,
    "c": 0.17771,
    "h": 273.6
  },
  "luminance": 0.08091
}

Semantic roles & 50–950 ramp

primary
#3A42B4
secondary
#C5C185
accent
#D14DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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