#3D38B4#3D38B4

#3D38B4 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.1% C 0.189 H 276.8°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#3D38B4
RGBrgb(61, 56, 180)
HSLhsl(242, 53%, 46%)
HSVhsv(242, 69%, 71%)
CMYKcmyk(66.1%, 68.9%, 0%, 29.4%)
CIE-LABlab(32.07, 40.65, -64.92)
CIE-LCHlch(32.07, 76.59, 302.05°)
OKLaboklab(43.15% 0.0222 -0.1874)
OKLCHoklch(43.15% 0.189 276.8)
XYZxyz(11.5742, 7.1147, 43.9345)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D38B4 #AFB438
analogous
#3871B4 #3D38B4 #7B38B4
triadic
#3D38B4 #B43D38 #38B43D
tetradic
#3D38B4 #B43871 #AFB438 #38B47B
square
#3D38B4 #B43871 #AFB438 #38B47B
split-complementary
#3D38B4 #B47B38 #71B438
monochromatic
#1D1B57 #2D2985 #3D38B4 #615DCD #8F8BDB

Accessibility & contrast

On white

8.67
#3D38B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3D38B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D38B4
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D38B4#FFFFFF#000000##FFFFFF
##3D38B41.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3d38b4;
/* rgb */ color: rgb(61, 56, 180);
/* oklch */ color: oklch(43.1% 0.189 276.8);
Tailwind
colors: {
  custom: {
    50: '#8270cc',
    500: '#3d38b4',
    950: '#000000',
  },
}
SCSS
$custom: #3d38b4;
$custom-light: #8270cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d38b4",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 242.419,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.43148,
    "c": 0.1887,
    "h": 276.8
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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