#3838BF#3838BF

#3838BF is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 43.9% C 0.204 H 274.1°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#3838BF
RGBrgb(56, 56, 191)
HSLhsl(240, 55%, 48%)
HSVhsv(240, 71%, 75%)
CMYKcmyk(70.7%, 70.7%, 0%, 25.1%)
CIE-LABlab(32.77, 43.71, -70.28)
CIE-LCHlch(32.77, 82.76, 301.88°)
OKLaboklab(43.88% 0.0145 -0.2032)
OKLCHoklch(43.88% 0.204 274.1)
XYZxyz(12.4459, 7.4295, 50.0582)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838BF #BFBF38
analogous
#387BBF #3838BF #7B38BF
triadic
#3838BF #BF3838 #38BF38
tetradic
#3838BF #BF387B #BFBF38 #38BF7B
square
#3838BF #BF387B #BFBF38 #38BF7B
split-complementary
#3838BF #BF7B38 #7BBF38
monochromatic
#1C1C60 #2A2A90 #3838BF #6363D1 #9292DF

Accessibility & contrast

On white

8.45
#3838BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3838BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838BF
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838BF#FFFFFF#000000##FFFFFF
##3838BF1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#0047BD
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3838bf;
/* rgb */ color: rgb(56, 56, 191);
/* oklch */ color: oklch(43.9% 0.204 274.1);
Tailwind
colors: {
  custom: {
    50: '#8270d4',
    500: '#3838bf',
    950: '#000000',
  },
}
SCSS
$custom: #3838bf;
$custom-light: #8270d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3838bf",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 240,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43876,
    "c": 0.20372,
    "h": 274.1
  },
  "luminance": 0.07431
}

Semantic roles & 50–950 ramp

primary
#3838BF
secondary
#CACA89
accent
#DE4ADE
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3838BF

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

Preview Lab → · Contrast checker → · Palette generator →

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