#3838B8#3838B8

#3838B8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.2% C 0.195 H 274.6°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#3838B8
RGBrgb(56, 56, 184)
HSLhsl(240, 53%, 47%)
HSVhsv(240, 70%, 72%)
CMYKcmyk(69.6%, 69.6%, 0%, 27.8%)
CIE-LABlab(32.10, 41.36, -67.25)
CIE-LCHlch(32.10, 78.95, 301.59°)
OKLaboklab(43.2% 0.0155 -0.1943)
OKLCHoklch(43.2% 0.195 274.6)
XYZxyz(11.6939, 7.1287, 46.0978)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838B8 #B8B838
analogous
#3878B8 #3838B8 #7838B8
triadic
#3838B8 #B83838 #38B838
tetradic
#3838B8 #B83878 #B8B838 #38B878
square
#3838B8 #B83878 #B8B838 #38B878
split-complementary
#3838B8 #B87838 #78B838
monochromatic
#1B1B5A #2A2A89 #3838B8 #5F5FCE #8E8EDD

Accessibility & contrast

On white

8.66
#3838B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3838B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838B8
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838B8#FFFFFF#000000##FFFFFF
##3838B81.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0046B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3838b8;
/* rgb */ color: rgb(56, 56, 184);
/* oklch */ color: oklch(43.2% 0.195 274.6);
Tailwind
colors: {
  custom: {
    50: '#806fce',
    500: '#3838b8',
    950: '#000000',
  },
}
SCSS
$custom: #3838b8;
$custom-light: #806fce;
$custom-dark: #000000;
JSON
{
  "hex": "#3838b8",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 240,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43195,
    "c": 0.19496,
    "h": 274.6
  },
  "luminance": 0.0713
}

Semantic roles & 50–950 ramp

primary
#3838B8
secondary
#C7C785
accent
#DD4BDD
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3838B8

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

Preview Lab → · Contrast checker → · Palette generator →

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