#3A42BC#3A42BC

#3A42BC is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.3% C 0.188 H 273.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#3A42BC
RGBrgb(58, 66, 188)
HSLhsl(236, 53%, 48%)
HSVhsv(236, 69%, 74%)
CMYKcmyk(69.1%, 64.9%, 0%, 26.3%)
CIE-LABlab(34.85, 36.87, -65.08)
CIE-LCHlch(34.85, 74.80, 299.53°)
OKLaboklab(45.34% 0.0107 -0.1879)
OKLCHoklch(45.34% 0.188 273.2)
XYZxyz(12.7672, 8.4256, 48.5207)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42BC #BCB43A
analogous
#3A83BC #3A42BC #733ABC
triadic
#3A42BC #BC3A42 #42BC3A
tetradic
#3A42BC #BC3A83 #BCB43A #3ABC73
square
#3A42BC #BC3A83 #BCB43A #3ABC73
split-complementary
#3A42BC #BC733A #83BC3A
monochromatic
#1D215E #2C328D #3A42BC #646BCF #9397DE

Accessibility & contrast

On white

7.82
#3A42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3A42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42BC
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42BC#FFFFFF#000000##FFFFFF
##3A42BC1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a42bc;
/* rgb */ color: rgb(58, 66, 188);
/* oklch */ color: oklch(45.3% 0.188 273.2);
Tailwind
colors: {
  custom: {
    50: '#8176d1',
    500: '#3a42bc',
    950: '#000000',
  },
}
SCSS
$custom: #3a42bc;
$custom-light: #8176d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42bc",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 236.308,
    "s": 52.846,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45337,
    "c": 0.18823,
    "h": 273.2
  },
  "luminance": 0.08427
}

Semantic roles & 50–950 ramp

primary
#3A42BC
secondary
#C9C589
accent
#D34CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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