#3838C4#3838C4

#3838C4 is a dark, highly saturated blue. Relative luminance 0.077; OKLCH L 44.4% C 0.210 H 273.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#3838C4
RGBrgb(56, 56, 196)
HSLhsl(240, 56%, 49%)
HSVhsv(240, 71%, 77%)
CMYKcmyk(71.4%, 71.4%, 0%, 23.1%)
CIE-LABlab(33.25, 45.37, -72.42)
CIE-LCHlch(33.25, 85.45, 302.07°)
OKLaboklab(44.37% 0.0137 -0.2094)
OKLCHoklch(44.37% 0.21 273.7)
XYZxyz(13.0055, 7.6533, 53.0057)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838C4 #C4C438
analogous
#387EC4 #3838C4 #7E38C4
triadic
#3838C4 #C43838 #38C438
tetradic
#3838C4 #C4387E #C4C438 #38C47E
square
#3838C4 #C4387E #C4C438 #38C47E
split-complementary
#3838C4 #C47E38 #7EC438
monochromatic
#1D1D65 #2A2A94 #3838C4 #6666D3 #9696E1

Accessibility & contrast

On white

8.30
#3838C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3838C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838C4
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838C4#FFFFFF#000000##FFFFFF
##3838C41.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C8
Deuteranopia (green-blind)
#0047C1
Tritanopia (blue-blind)
#005F7A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3838c4;
/* rgb */ color: rgb(56, 56, 196);
/* oklch */ color: oklch(44.4% 0.210 273.7);
Tailwind
colors: {
  custom: {
    50: '#8370d7',
    500: '#3838c4',
    950: '#000000',
  },
}
SCSS
$custom: #3838c4;
$custom-light: #8370d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3838c4",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 240,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.4437,
    "c": 0.20988,
    "h": 273.7
  },
  "luminance": 0.07655
}

Semantic roles & 50–950 ramp

primary
#3838C4
secondary
#CCCC8C
accent
#DF49DF
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3838C4

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

Preview Lab → · Contrast checker → · Palette generator →

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