#3D38B7#3D38B7

#3D38B7 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.4% C 0.193 H 276.5°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#3D38B7
RGBrgb(61, 56, 183)
HSLhsl(242, 53%, 47%)
HSVhsv(242, 69%, 72%)
CMYKcmyk(66.7%, 69.4%, 0%, 28.2%)
CIE-LABlab(32.34, 41.64, -66.24)
CIE-LCHlch(32.34, 78.24, 302.15°)
OKLaboklab(43.43% 0.0218 -0.1913)
OKLCHoklch(43.43% 0.193 276.5)
XYZxyz(11.8831, 7.2383, 45.5615)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D38B7 #B2B738
analogous
#3873B7 #3D38B7 #7D38B7
triadic
#3D38B7 #B73D38 #38B73D
tetradic
#3D38B7 #B73873 #B2B738 #38B77D
square
#3D38B7 #B73873 #B2B738 #38B77D
split-complementary
#3D38B7 #B77D38 #73B738
monochromatic
#1E1B59 #2D2A88 #3D38B7 #635ECE #908DDC

Accessibility & contrast

On white

8.58
#3D38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3D38B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D38B7
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D38B7#FFFFFF#000000##FFFFFF
##3D38B71.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0046B5
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3d38b7;
/* rgb */ color: rgb(61, 56, 183);
/* oklch */ color: oklch(43.4% 0.193 276.5);
Tailwind
colors: {
  custom: {
    50: '#8270ce',
    500: '#3d38b7',
    950: '#000000',
  },
}
SCSS
$custom: #3d38b7;
$custom-light: #8270ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3d38b7",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 242.362,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43432,
    "c": 0.19251,
    "h": 276.5
  },
  "luminance": 0.07239
}

Semantic roles & 50–950 ramp

primary
#3D38B7
secondary
#C4C784
accent
#DD4BD7
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3D38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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