#3838BB#3838BB

#3838BB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.199 H 274.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#3838BB
RGBrgb(56, 56, 187)
HSLhsl(240, 54%, 48%)
HSVhsv(240, 70%, 73%)
CMYKcmyk(70.1%, 70.1%, 0%, 26.7%)
CIE-LABlab(32.38, 42.37, -68.56)
CIE-LCHlch(32.38, 80.59, 301.72°)
OKLaboklab(43.49% 0.0151 -0.1982)
OKLCHoklch(43.49% 0.199 274.3)
XYZxyz(12.0117, 7.2558, 47.7716)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838BB #BBBB38
analogous
#3879BB #3838BB #7938BB
triadic
#3838BB #BB3838 #38BB38
tetradic
#3838BB #BB3879 #BBBB38 #38BB79
square
#3838BB #BB3879 #BBBB38 #38BB79
split-complementary
#3838BB #BB7938 #79BB38
monochromatic
#1C1C5D #2A2A8C #3838BB #6161D0 #9090DE

Accessibility & contrast

On white

8.57
#3838BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3838BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838BB
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838BB#FFFFFF#000000##FFFFFF
##3838BB1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0046B9
Tritanopia (blue-blind)
#005C75
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3838bb;
/* rgb */ color: rgb(56, 56, 187);
/* oklch */ color: oklch(43.5% 0.199 274.3);
Tailwind
colors: {
  custom: {
    50: '#8170d1',
    500: '#3838bb',
    950: '#000000',
  },
}
SCSS
$custom: #3838bb;
$custom-light: #8170d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3838bb",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 240,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.43486,
    "c": 0.19873,
    "h": 274.3
  },
  "luminance": 0.07257
}

Semantic roles & 50–950 ramp

primary
#3838BB
secondary
#C8C886
accent
#DD4BDD
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3838BB

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

Preview Lab → · Contrast checker → · Palette generator →

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