#3D38B8#3D38B8

#3D38B8 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.194 H 276.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#3D38B8
RGBrgb(61, 56, 184)
HSLhsl(242, 53%, 47%)
HSVhsv(242, 70%, 72%)
CMYKcmyk(66.8%, 69.6%, 0%, 27.8%)
CIE-LABlab(32.44, 41.97, -66.68)
CIE-LCHlch(32.44, 78.79, 302.19°)
OKLaboklab(43.53% 0.0216 -0.1925)
OKLCHoklch(43.53% 0.194 276.4)
XYZxyz(11.9875, 7.2801, 46.1116)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D38B8 #B3B838
analogous
#3873B8 #3D38B8 #7D38B8
triadic
#3D38B8 #B83D38 #38B83D
tetradic
#3D38B8 #B83873 #B3B838 #38B87D
square
#3D38B8 #B83873 #B3B838 #38B87D
split-complementary
#3D38B8 #B87D38 #73B838
monochromatic
#1E1B5A #2D2A89 #3D38B8 #635FCE #918EDD

Accessibility & contrast

On white

8.55
#3D38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3D38B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D38B8
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D38B8#FFFFFF#000000##FFFFFF
##3D38B81.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3d38b8;
/* rgb */ color: rgb(61, 56, 184);
/* oklch */ color: oklch(43.5% 0.194 276.4);
Tailwind
colors: {
  custom: {
    50: '#8270ce',
    500: '#3d38b8',
    950: '#000000',
  },
}
SCSS
$custom: #3d38b8;
$custom-light: #8270ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3d38b8",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 242.344,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43527,
    "c": 0.19376,
    "h": 276.4
  },
  "luminance": 0.07281
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3D38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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