#3838C5#3838C5

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

Color values

HEX#3838C5
RGBrgb(56, 56, 197)
HSLhsl(240, 56%, 50%)
HSVhsv(240, 72%, 77%)
CMYKcmyk(71.6%, 71.6%, 0%, 22.7%)
CIE-LABlab(33.35, 45.70, -72.84)
CIE-LCHlch(33.35, 85.99, 302.10°)
OKLaboklab(44.47% 0.0136 -0.2107)
OKLCHoklch(44.47% 0.211 273.7)
XYZxyz(13.1197, 7.6990, 53.6071)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838C5 #C5C538
analogous
#387FC5 #3838C5 #7F38C5
triadic
#3838C5 #C53838 #38C538
tetradic
#3838C5 #C5387F #C5C538 #38C57F
square
#3838C5 #C5387F #C5C538 #38C57F
split-complementary
#3838C5 #C57F38 #7FC538
monochromatic
#1D1D66 #2A2A95 #3838C5 #6767D4 #9696E1

Accessibility & contrast

On white

8.27
#3838C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#3838C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838C5
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838C5#FFFFFF#000000##FFFFFF
##3838C51.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C9
Deuteranopia (green-blind)
#0048C2
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3838c5;
/* rgb */ color: rgb(56, 56, 197);
/* oklch */ color: oklch(44.5% 0.211 273.7);
Tailwind
colors: {
  custom: {
    50: '#8370d8',
    500: '#3838c5',
    950: '#000000',
  },
}
SCSS
$custom: #3838c5;
$custom-light: #8370d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3838c5",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 240,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.44469,
    "c": 0.21111,
    "h": 273.7
  },
  "luminance": 0.077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3838C5

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

Preview Lab → · Contrast checker → · Palette generator →

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