#3D42BB#3D42BB

#3D42BB is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.4% C 0.186 H 274.4°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#3D42BB
RGBrgb(61, 66, 187)
HSLhsl(238, 51%, 49%)
HSVhsv(238, 67%, 73%)
CMYKcmyk(67.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(34.95, 36.92, -64.33)
CIE-LCHlch(34.95, 74.17, 299.86°)
OKLaboklab(45.43% 0.0141 -0.1856)
OKLCHoklch(45.43% 0.186 274.4)
XYZxyz(12.8394, 8.4752, 47.9633)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D42BB #BBB63D
analogous
#3D81BB #3D42BB #773DBB
triadic
#3D42BB #BB3D42 #42BB3D
tetradic
#3D42BB #BB3D81 #BBB63D #3DBB77
square
#3D42BB #BB3D81 #BBB63D #3DBB77
split-complementary
#3D42BB #BB773D #81BB3D
monochromatic
#1F215F #2E328D #3D42BB #686CCE #9699DD

Accessibility & contrast

On white

7.79
#3D42BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D42BB
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D42BB#FFFFFF#000000##FFFFFF
##3D42BB1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3d42bb;
/* rgb */ color: rgb(61, 66, 187);
/* oklch */ color: oklch(45.4% 0.186 274.4);
Tailwind
colors: {
  custom: {
    50: '#8277d0',
    500: '#3d42bb',
    950: '#000000',
  },
}
SCSS
$custom: #3d42bb;
$custom-light: #8277d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d42bb",
  "rgb": {
    "r": 61,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 237.619,
    "s": 50.806,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45433,
    "c": 0.18617,
    "h": 274.4
  },
  "luminance": 0.08476
}

Semantic roles & 50–950 ramp

primary
#3D42BB
secondary
#C8C68C
accent
#D54EDA
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3D42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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