#3D38CB#3D38CB

#3D38CB is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.4% C 0.217 H 274.9°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#3D38CB
RGBrgb(61, 56, 203)
HSLhsl(242, 59%, 51%)
HSVhsv(242, 72%, 80%)
CMYKcmyk(70%, 72.4%, 0%, 20.4%)
CIE-LABlab(34.25, 48.16, -74.84)
CIE-LCHlch(34.25, 89.00, 302.76°)
OKLaboklab(45.38% 0.0185 -0.2164)
OKLCHoklch(45.38% 0.217 274.9)
XYZxyz(14.1146, 8.1309, 57.3139)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D38CB #C6CB38
analogous
#387CCB #3D38CB #8638CB
triadic
#3D38CB #CB3D38 #38CB3D
tetradic
#3D38CB #CB387C #C6CB38 #38CB86
square
#3D38CB #CB387C #C6CB38 #38CB86
split-complementary
#3D38CB #CB8638 #7CCB38
monochromatic
#1F1C6C #2D299D #3D38CB #6C69D8 #9C99E4

Accessibility & contrast

On white

8.00
#3D38CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3D38CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D38CB
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D38CB#FFFFFF#000000##FFFFFF
##3D38CB1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CF
Deuteranopia (green-blind)
#004AC8
Tritanopia (blue-blind)
#00627E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3d38cb;
/* rgb */ color: rgb(61, 56, 203);
/* oklch */ color: oklch(45.4% 0.217 274.9);
Tailwind
colors: {
  custom: {
    50: '#8670dc',
    500: '#3d38cb',
    950: '#000000',
  },
}
SCSS
$custom: #3d38cb;
$custom-light: #8670dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3d38cb",
  "rgb": {
    "r": 61,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 242.041,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.45376,
    "c": 0.21716,
    "h": 274.9
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#3D38CB
secondary
#CED08F
accent
#E246DC
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3D38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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