#3838B2#3838B2

#3838B2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.187 H 275.0°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#3838B2
RGBrgb(56, 56, 178)
HSLhsl(240, 52%, 46%)
HSVhsv(240, 69%, 70%)
CMYKcmyk(68.5%, 68.5%, 0%, 30.2%)
CIE-LABlab(31.54, 39.34, -64.61)
CIE-LCHlch(31.54, 75.64, 301.33°)
OKLaboklab(42.62% 0.0163 -0.1866)
OKLCHoklch(42.62% 0.187 275)
XYZxyz(11.0783, 6.8824, 42.8555)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838B2 #B2B238
analogous
#3875B2 #3838B2 #7538B2
triadic
#3838B2 #B23838 #38B238
tetradic
#3838B2 #B23875 #B2B238 #38B275
square
#3838B2 #B23875 #B2B238 #38B275
split-complementary
#3838B2 #B27538 #75B238
monochromatic
#1B1B55 #292983 #3838B2 #5C5CCC #8A8ADA

Accessibility & contrast

On white

8.84
#3838B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3838B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838B2
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838B2#FFFFFF#000000##FFFFFF
##3838B21.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3838b2;
/* rgb */ color: rgb(56, 56, 178);
/* oklch */ color: oklch(42.6% 0.187 275.0);
Tailwind
colors: {
  custom: {
    50: '#7f6fca',
    500: '#3838b2',
    950: '#000000',
  },
}
SCSS
$custom: #3838b2;
$custom-light: #7f6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#3838b2",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 240,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42621,
    "c": 0.18733,
    "h": 275
  },
  "luminance": 0.06883
}

Semantic roles & 50–950 ramp

primary
#3838B2
secondary
#C5C581
accent
#DC4CDC
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3838B2

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

Preview Lab → · Contrast checker → · Palette generator →

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