#3838AE#3838AE

#3838AE is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.2% C 0.182 H 275.3°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#3838AE
RGBrgb(56, 56, 174)
HSLhsl(240, 51%, 45%)
HSVhsv(240, 68%, 68%)
CMYKcmyk(67.8%, 67.8%, 0%, 31.8%)
CIE-LABlab(31.17, 37.97, -62.83)
CIE-LCHlch(31.17, 73.41, 301.15°)
OKLaboklab(42.24% 0.0168 -0.1814)
OKLCHoklch(42.24% 0.182 275.3)
XYZxyz(10.6825, 6.7241, 40.7711)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838AE #AEAE38
analogous
#3873AE #3838AE #7338AE
triadic
#3838AE #AE3838 #38AE38
tetradic
#3838AE #AE3873 #AEAE38 #38AE73
square
#3838AE #AE3873 #AEAE38 #38AE73
split-complementary
#3838AE #AE7338 #73AE38
monochromatic
#1A1A51 #292980 #3838AE #5959CA #8888D9

Accessibility & contrast

On white

8.96
#3838AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3838AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838AE
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838AE#FFFFFF#000000##FFFFFF
##3838AE1.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3838ae;
/* rgb */ color: rgb(56, 56, 174);
/* oklch */ color: oklch(42.2% 0.182 275.3);
Tailwind
colors: {
  custom: {
    50: '#7e6fc7',
    500: '#3838ae',
    950: '#000000',
  },
}
SCSS
$custom: #3838ae;
$custom-light: #7e6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3838ae",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 240,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42243,
    "c": 0.18218,
    "h": 275.3
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

primary
#3838AE
secondary
#C3C37F
accent
#DB4DDB
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3838AE

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

Preview Lab → · Contrast checker → · Palette generator →

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