#3838C2#3838C2

#3838C2 is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.2% C 0.207 H 273.9°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#3838C2
RGBrgb(56, 56, 194)
HSLhsl(240, 55%, 49%)
HSVhsv(240, 71%, 76%)
CMYKcmyk(71.1%, 71.1%, 0%, 23.9%)
CIE-LABlab(33.06, 44.70, -71.57)
CIE-LCHlch(33.06, 84.38, 301.99°)
OKLaboklab(44.17% 0.014 -0.2069)
OKLCHoklch(44.17% 0.207 273.9)
XYZxyz(12.7794, 7.5629, 51.8148)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838C2 #C2C238
analogous
#387DC2 #3838C2 #7D38C2
triadic
#3838C2 #C23838 #38C238
tetradic
#3838C2 #C2387D #C2C238 #38C27D
square
#3838C2 #C2387D #C2C238 #38C27D
split-complementary
#3838C2 #C27D38 #7DC238
monochromatic
#1D1D63 #2A2A93 #3838C2 #6565D2 #9494E0

Accessibility & contrast

On white

8.36
#3838C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3838C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838C2
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838C2#FFFFFF#000000##FFFFFF
##3838C21.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0047BF
Tritanopia (blue-blind)
#005F79
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3838c2;
/* rgb */ color: rgb(56, 56, 194);
/* oklch */ color: oklch(44.2% 0.207 273.9);
Tailwind
colors: {
  custom: {
    50: '#8370d6',
    500: '#3838c2',
    950: '#000000',
  },
}
SCSS
$custom: #3838c2;
$custom-light: #8370d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3838c2",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 240,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.44172,
    "c": 0.20743,
    "h": 273.9
  },
  "luminance": 0.07564
}

Semantic roles & 50–950 ramp

primary
#3838C2
secondary
#CBCB8A
accent
#DF49DF
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3838C2

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

Preview Lab → · Contrast checker → · Palette generator →

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