#3838AB#3838AB

#3838AB is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.0% C 0.178 H 275.5°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#3838AB
RGBrgb(56, 56, 171)
HSLhsl(240, 51%, 45%)
HSVhsv(240, 67%, 67%)
CMYKcmyk(67.3%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.90, 36.95, -61.48)
CIE-LCHlch(30.90, 71.73, 301.01°)
OKLaboklab(41.96% 0.0171 -0.1775)
OKLCHoklch(41.96% 0.178 275.5)
XYZxyz(10.3933, 6.6085, 39.2480)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838AB #ABAB38
analogous
#3872AB #3838AB #7238AB
triadic
#3838AB #AB3838 #38AB38
tetradic
#3838AB #AB3872 #ABAB38 #38AB72
square
#3838AB #AB3872 #ABAB38 #38AB72
split-complementary
#3838AB #AB7238 #72AB38
monochromatic
#1A1A4F #29297D #3838AB #5858C8 #8686D7

Accessibility & contrast

On white

9.04
#3838AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3838AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838AB
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838AB#FFFFFF#000000##FFFFFF
##3838AB1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3838ab;
/* rgb */ color: rgb(56, 56, 171);
/* oklch */ color: oklch(42.0% 0.178 275.5);
Tailwind
colors: {
  custom: {
    50: '#7e6fc5',
    500: '#3838ab',
    950: '#000000',
  },
}
SCSS
$custom: #3838ab;
$custom-light: #7e6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3838ab",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 240,
    "s": 50.661,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41962,
    "c": 0.17828,
    "h": 275.5
  },
  "luminance": 0.06609
}

Semantic roles & 50–950 ramp

primary
#3838AB
secondary
#C1C17D
accent
#DA4EDA
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3838AB

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

Preview Lab → · Contrast checker → · Palette generator →

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