#3838C6#3838C6

#3838C6 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.6% C 0.212 H 273.6°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#3838C6
RGBrgb(56, 56, 198)
HSLhsl(240, 56%, 50%)
HSVhsv(240, 72%, 78%)
CMYKcmyk(71.7%, 71.7%, 0%, 22.4%)
CIE-LABlab(33.45, 46.03, -73.27)
CIE-LCHlch(33.45, 86.52, 302.14°)
OKLaboklab(44.57% 0.0134 -0.2119)
OKLCHoklch(44.57% 0.212 273.6)
XYZxyz(13.2347, 7.7450, 54.2126)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838C6 #C6C638
analogous
#387FC6 #3838C6 #7F38C6
triadic
#3838C6 #C63838 #38C638
tetradic
#3838C6 #C6387F #C6C638 #38C67F
square
#3838C6 #C6387F #C6C638 #38C67F
split-complementary
#3838C6 #C67F38 #7FC638
monochromatic
#1D1D67 #2B2B96 #3838C6 #6767D4 #9797E2

Accessibility & contrast

On white

8.24
#3838C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#3838C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838C6
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838C6#FFFFFF#000000##FFFFFF
##3838C61.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CA
Deuteranopia (green-blind)
#0048C3
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3838c6;
/* rgb */ color: rgb(56, 56, 198);
/* oklch */ color: oklch(44.6% 0.212 273.6);
Tailwind
colors: {
  custom: {
    50: '#8370d9',
    500: '#3838c6',
    950: '#000000',
  },
}
SCSS
$custom: #3838c6;
$custom-light: #8370d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3838c6",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 240,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.44569,
    "c": 0.21232,
    "h": 273.6
  },
  "luminance": 0.07746
}

Semantic roles & 50–950 ramp

primary
#3838C6
secondary
#CDCD8D
accent
#DF49DF
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3838C6

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

Preview Lab → · Contrast checker → · Palette generator →

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