#3838AC#3838AC

#3838AC is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.180 H 275.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#3838AC
RGBrgb(56, 56, 172)
HSLhsl(240, 51%, 45%)
HSVhsv(240, 67%, 67%)
CMYKcmyk(67.4%, 67.4%, 0%, 32.5%)
CIE-LABlab(30.99, 37.29, -61.93)
CIE-LCHlch(30.99, 72.29, 301.06°)
OKLaboklab(42.06% 0.017 -0.1788)
OKLCHoklch(42.06% 0.18 275.4)
XYZxyz(10.4890, 6.6467, 39.7519)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838AC #ACAC38
analogous
#3872AC #3838AC #7238AC
triadic
#3838AC #AC3838 #38AC38
tetradic
#3838AC #AC3872 #ACAC38 #38AC72
square
#3838AC #AC3872 #ACAC38 #38AC72
split-complementary
#3838AC #AC7238 #72AC38
monochromatic
#1A1A50 #29297E #3838AC #5858C9 #8787D8

Accessibility & contrast

On white

9.01
#3838AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3838AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838AC
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838AC#FFFFFF#000000##FFFFFF
##3838AC1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3838ac;
/* rgb */ color: rgb(56, 56, 172);
/* oklch */ color: oklch(42.1% 0.180 275.4);
Tailwind
colors: {
  custom: {
    50: '#7e6fc6',
    500: '#3838ac',
    950: '#000000',
  },
}
SCSS
$custom: #3838ac;
$custom-light: #7e6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3838ac",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 240,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42056,
    "c": 0.17959,
    "h": 275.4
  },
  "luminance": 0.06648
}

Semantic roles & 50–950 ramp

primary
#3838AC
secondary
#C2C27E
accent
#DA4DDA
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3838AC

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

Preview Lab → · Contrast checker → · Palette generator →

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