#3D38B2#3D38B2

#3D38B2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 43.0% C 0.186 H 276.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#3D38B2
RGBrgb(61, 56, 178)
HSLhsl(242, 52%, 46%)
HSVhsv(242, 69%, 70%)
CMYKcmyk(65.7%, 68.5%, 0%, 30.2%)
CIE-LABlab(31.88, 39.98, -64.03)
CIE-LCHlch(31.88, 75.49, 301.98°)
OKLaboklab(42.96% 0.0225 -0.1848)
OKLCHoklch(42.96% 0.186 276.9)
XYZxyz(11.3719, 7.0338, 42.8692)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D38B2 #ADB238
analogous
#3870B2 #3D38B2 #7A38B2
triadic
#3D38B2 #B23D38 #38B23D
tetradic
#3D38B2 #B23870 #ADB238 #38B27A
square
#3D38B2 #B23870 #ADB238 #38B27A
split-complementary
#3D38B2 #B27A38 #70B238
monochromatic
#1D1B55 #2D2983 #3D38B2 #605CCC #8D8ADA

Accessibility & contrast

On white

8.72
#3D38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3D38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D38B2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D38B2#FFFFFF#000000##FFFFFF
##3D38B21.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0046B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3d38b2;
/* rgb */ color: rgb(61, 56, 178);
/* oklch */ color: oklch(43.0% 0.186 276.9);
Tailwind
colors: {
  custom: {
    50: '#816fca',
    500: '#3d38b2',
    950: '#000000',
  },
}
SCSS
$custom: #3d38b2;
$custom-light: #816fca;
$custom-dark: #000000;
JSON
{
  "hex": "#3d38b2",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 242.459,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4296,
    "c": 0.18615,
    "h": 276.9
  },
  "luminance": 0.07035
}

Semantic roles & 50–950 ramp

primary
#3D38B2
secondary
#C2C581
accent
#DC4CD6
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3D38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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