#3E42D3#3E42D3

#3E42D3 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.216 H 273.4°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#3E42D3
RGBrgb(62, 66, 211)
HSLhsl(238, 63%, 54%)
HSVhsv(238, 71%, 83%)
CMYKcmyk(70.6%, 68.7%, 0%, 17.3%)
CIE-LABlab(37.16, 45.16, -74.70)
CIE-LCHlch(37.16, 87.28, 301.15°)
OKLaboklab(47.7% 0.0128 -0.216)
OKLCHoklch(47.7% 0.216 273.4)
XYZxyz(15.6888, 9.6222, 62.6458)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E42D3 #D3CF3E
analogous
#3E8CD3 #3E42D3 #843ED3
triadic
#3E42D3 #D33E42 #42D33E
tetradic
#3E42D3 #D33E8C #D3CF3E #3ED384
square
#3E42D3 #D33E8C #D3CF3E #3ED384
split-complementary
#3E42D3 #D3843E #8CD33E
monochromatic
#1C1F7B #272BAC #3E42D3 #7073DE #A2A4EA

Accessibility & contrast

On white

7.18
#3E42D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#3E42D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E42D3
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E42D3#FFFFFF#000000##FFFFFF
##3E42D31.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED7
Deuteranopia (green-blind)
#0050D0
Tritanopia (blue-blind)
#006A85
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3e42d3;
/* rgb */ color: rgb(62, 66, 211);
/* oklch */ color: oklch(47.7% 0.216 273.4);
Tailwind
colors: {
  custom: {
    50: '#8877e2',
    500: '#3e42d3',
    950: '#000000',
  },
}
SCSS
$custom: #3e42d3;
$custom-light: #8877e2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e42d3",
  "rgb": {
    "r": 62,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 238.389,
    "s": 62.869,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47701,
    "c": 0.21634,
    "h": 273.4
  },
  "luminance": 0.09624
}

Semantic roles & 50–950 ramp

primary
#3E42D3
secondary
#D6D596
accent
#E242E6
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0915
muted
#7E7B84

Preview Lab

Preview with #3E42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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