#3A42B7#3A42B7

#3A42B7 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.182 H 273.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#3A42B7
RGBrgb(58, 66, 183)
HSLhsl(236, 52%, 47%)
HSVhsv(236, 68%, 72%)
CMYKcmyk(68.3%, 63.9%, 0%, 28.2%)
CIE-LABlab(34.42, 35.13, -62.84)
CIE-LCHlch(34.42, 71.99, 299.21°)
OKLaboklab(44.89% 0.011 -0.1813)
OKLCHoklch(44.89% 0.182 273.5)
XYZxyz(12.2375, 8.2137, 45.7311)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42B7 #B7AF3A
analogous
#3A81B7 #3A42B7 #713AB7
triadic
#3A42B7 #B73A42 #42B73A
tetradic
#3A42B7 #B73A81 #B7AF3A #3AB771
square
#3A42B7 #B73A81 #B7AF3A #3AB771
split-complementary
#3A42B7 #B7713A #81B73A
monochromatic
#1D205A #2B3189 #3A42B7 #6168CD #9095DC

Accessibility & contrast

On white

7.95
#3A42B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#3A42B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42B7
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42B7#FFFFFF#000000##FFFFFF
##3A42B71.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a42b7;
/* rgb */ color: rgb(58, 66, 183);
/* oklch */ color: oklch(44.9% 0.182 273.5);
Tailwind
colors: {
  custom: {
    50: '#8076ce',
    500: '#3a42b7',
    950: '#000000',
  },
}
SCSS
$custom: #3a42b7;
$custom-light: #8076ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42b7",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 236.16,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4489,
    "c": 0.18168,
    "h": 273.5
  },
  "luminance": 0.08215
}

Semantic roles & 50–950 ramp

primary
#3A42B7
secondary
#C7C286
accent
#D24CDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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