#3A42BE#3A42BE

#3A42BE is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.5% C 0.191 H 273.2°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#3A42BE
RGBrgb(58, 66, 190)
HSLhsl(236, 53%, 49%)
HSVhsv(236, 69%, 75%)
CMYKcmyk(69.5%, 65.3%, 0%, 25.5%)
CIE-LABlab(35.03, 37.56, -65.97)
CIE-LCHlch(35.03, 75.92, 299.66°)
OKLaboklab(45.52% 0.0105 -0.1905)
OKLCHoklch(45.52% 0.191 273.2)
XYZxyz(12.9843, 8.5124, 49.6640)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42BE #BEB63A
analogous
#3A84BE #3A42BE #743ABE
triadic
#3A42BE #BE3A42 #42BE3A
tetradic
#3A42BE #BE3A84 #BEB63A #3ABE74
square
#3A42BE #BE3A84 #BEB63A #3ABE74
split-complementary
#3A42BE #BE743A #84BE3A
monochromatic
#1D2160 #2C328F #3A42BE #656CD0 #9499DE

Accessibility & contrast

On white

7.77
#3A42BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3A42BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42BE
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42BE#FFFFFF#000000##FFFFFF
##3A42BE1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a42be;
/* rgb */ color: rgb(58, 66, 190);
/* oklch */ color: oklch(45.5% 0.191 273.2);
Tailwind
colors: {
  custom: {
    50: '#8276d3',
    500: '#3a42be',
    950: '#000000',
  },
}
SCSS
$custom: #3a42be;
$custom-light: #8276d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42be",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 236.364,
    "s": 53.226,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45518,
    "c": 0.19083,
    "h": 273.2
  },
  "luminance": 0.08514
}

Semantic roles & 50–950 ramp

primary
#3A42BE
secondary
#CAC68A
accent
#D44BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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