#3838CC#3838CC

#3838CC is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.2% C 0.220 H 273.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#3838CC
RGBrgb(56, 56, 204)
HSLhsl(240, 59%, 51%)
HSVhsv(240, 73%, 80%)
CMYKcmyk(72.5%, 72.5%, 0%, 20%)
CIE-LABlab(34.04, 48.00, -75.79)
CIE-LCHlch(34.04, 89.70, 302.35°)
OKLaboklab(45.17% 0.0124 -0.2192)
OKLCHoklch(45.17% 0.22 273.2)
XYZxyz(13.9405, 8.0273, 57.9298)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838CC #CCCC38
analogous
#3882CC #3838CC #8238CC
triadic
#3838CC #CC3838 #38CC38
tetradic
#3838CC #CC3882 #CCCC38 #38CC82
square
#3838CC #CC3882 #CCCC38 #38CC82
split-complementary
#3838CC #CC8238 #82CC38
monochromatic
#1C1C6E #29299E #3838CC #6969D8 #9999E5

Accessibility & contrast

On white

8.06
#3838CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#3838CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838CC
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838CC#FFFFFF#000000##FFFFFF
##3838CC1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D0
Deuteranopia (green-blind)
#0049C9
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3838cc;
/* rgb */ color: rgb(56, 56, 204);
/* oklch */ color: oklch(45.2% 0.220 273.2);
Tailwind
colors: {
  custom: {
    50: '#8570dd',
    500: '#3838cc',
    950: '#000000',
  },
}
SCSS
$custom: #3838cc;
$custom-light: #8570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3838cc",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 240,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4517,
    "c": 0.2196,
    "h": 273.2
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

primary
#3838CC
secondary
#D1D18F
accent
#E245E2
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3838CC

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

Preview Lab → · Contrast checker → · Palette generator →

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