#3D338B#3D338B

#3D338B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.140 H 282.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#3D338B
RGBrgb(61, 51, 139)
HSLhsl(247, 46%, 37%)
HSVhsv(247, 63%, 55%)
CMYKcmyk(56.1%, 63.3%, 0%, 45.5%)
CIE-LABlab(27.36, 30.07, -47.74)
CIE-LCHlch(27.36, 56.42, 302.21°)
OKLaboklab(38.63% 0.031 -0.137)
OKLCHoklch(38.63% 0.14 282.8)
XYZxyz(7.7671, 5.2234, 25.0200)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D338B #818B33
analogous
#33558B #3D338B #69338B
triadic
#3D338B #8B3D33 #338B3D
tetradic
#3D338B #8B3355 #818B33 #338B69
square
#3D338B #8B3355 #818B33 #338B69
split-complementary
#3D338B #8B6933 #558B33
monochromatic
#161231 #29235E #3D338B #5143B8 #796ECA

Accessibility & contrast

On white

10.27
#3D338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3D338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D338B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D338B#FFFFFF#000000##FFFFFF
##3D338B1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#19485A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3d338b;
/* rgb */ color: rgb(61, 51, 139);
/* oklch */ color: oklch(38.6% 0.140 282.8);
Tailwind
colors: {
  custom: {
    50: '#7a6bae',
    500: '#3d338b',
    950: '#000000',
  },
}
SCSS
$custom: #3d338b;
$custom-light: #7a6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d338b",
  "rgb": {
    "r": 61,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 246.818,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38634,
    "c": 0.14048,
    "h": 282.8
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#3D338B
secondary
#A9B268
accent
#D652C7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3D338B

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

Preview Lab → · Contrast checker → · Palette generator →

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