#3A42B5#3A42B5

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

Color values

HEX#3A42B5
RGBrgb(58, 66, 181)
HSLhsl(236, 51%, 47%)
HSVhsv(236, 68%, 71%)
CMYKcmyk(68%, 63.5%, 0%, 29%)
CIE-LABlab(34.25, 34.43, -61.93)
CIE-LCHlch(34.25, 70.86, 299.07°)
OKLaboklab(44.71% 0.0111 -0.1787)
OKLCHoklch(44.71% 0.179 273.6)
XYZxyz(12.0308, 8.1311, 44.6425)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42B5 #B5AD3A
analogous
#3A7FB5 #3A42B5 #703AB5
triadic
#3A42B5 #B53A42 #42B53A
tetradic
#3A42B5 #B53A7F #B5AD3A #3AB570
square
#3A42B5 #B53A7F #B5AD3A #3AB570
split-complementary
#3A42B5 #B5703A #7FB53A
monochromatic
#1C2058 #2B3187 #3A42B5 #6067CC #8E93DB

Accessibility & contrast

On white

8.00
#3A42B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3A42B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42B5
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42B5#FFFFFF#000000##FFFFFF
##3A42B51.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a42b5;
/* rgb */ color: rgb(58, 66, 181);
/* oklch */ color: oklch(44.7% 0.179 273.6);
Tailwind
colors: {
  custom: {
    50: '#8076cc',
    500: '#3a42b5',
    950: '#000000',
  },
}
SCSS
$custom: #3a42b5;
$custom-light: #8076cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42b5",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 236.098,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44713,
    "c": 0.17905,
    "h": 273.6
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#3A42B5
secondary
#C6C185
accent
#D24DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A42B5

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

Preview Lab → · Contrast checker → · Palette generator →

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