#3838DC#3838DC

#3838DC is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.8% C 0.239 H 272.3°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#3838DC
RGBrgb(56, 56, 220)
HSLhsl(240, 70%, 54%)
HSVhsv(240, 75%, 86%)
CMYKcmyk(74.5%, 74.5%, 0%, 13.7%)
CIE-LABlab(35.66, 53.15, -82.35)
CIE-LCHlch(35.66, 98.01, 302.84°)
OKLaboklab(46.81% 0.0097 -0.2383)
OKLCHoklch(46.81% 0.239 272.3)
XYZxyz(15.9590, 8.8347, 68.5605)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838DC #DCDC38
analogous
#388ADC #3838DC #8A38DC
triadic
#3838DC #DC3838 #38DC38
tetradic
#3838DC #DC388A #DCDC38 #38DC8A
square
#3838DC #DC388A #DCDC38 #38DC8A
split-complementary
#3838DC #DC8A38 #8ADC38
monochromatic
#171783 #2020B7 #3838DC #6C6CE5 #A0A0EE

Accessibility & contrast

On white

7.59
#3838DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#3838DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838DC
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838DC#FFFFFF#000000##FFFFFF
##3838DC1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE1
Deuteranopia (green-blind)
#004CD9
Tritanopia (blue-blind)
#006888
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3838dc;
/* rgb */ color: rgb(56, 56, 220);
/* oklch */ color: oklch(46.8% 0.239 272.3);
Tailwind
colors: {
  custom: {
    50: '#8871e8',
    500: '#3838dc',
    950: '#000000',
  },
}
SCSS
$custom: #3838dc;
$custom-light: #8871e8;
$custom-dark: #000000;
JSON
{
  "hex": "#3838dc",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 220
  },
  "hsl": {
    "h": 240,
    "s": 70.085,
    "l": 54.118
  },
  "oklch": {
    "l": 0.46806,
    "c": 0.23854,
    "h": 272.3
  },
  "luminance": 0.08836
}

Semantic roles & 50–950 ramp

primary
#3838DC
secondary
#DBDB95
accent
#ED3BED
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3838DC

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

Preview Lab → · Contrast checker → · Palette generator →

#3838DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva