#3838B7#3838B7

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

Color values

HEX#3838B7
RGBrgb(56, 56, 183)
HSLhsl(240, 53%, 47%)
HSVhsv(240, 69%, 72%)
CMYKcmyk(69.4%, 69.4%, 0%, 28.2%)
CIE-LABlab(32.00, 41.03, -66.81)
CIE-LCHlch(32.00, 78.40, 301.55°)
OKLaboklab(43.1% 0.0156 -0.1931)
OKLCHoklch(43.1% 0.194 274.6)
XYZxyz(11.5895, 7.0869, 45.5477)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3838B7 #B7B738
analogous
#3878B7 #3838B7 #7838B7
triadic
#3838B7 #B73838 #38B738
tetradic
#3838B7 #B73878 #B7B738 #38B778
square
#3838B7 #B73878 #B7B738 #38B778
split-complementary
#3838B7 #B77838 #78B738
monochromatic
#1B1B59 #2A2A88 #3838B7 #5E5ECE #8D8DDC

Accessibility & contrast

On white

8.69
#3838B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3838B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3838B7
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3838B7#FFFFFF#000000##FFFFFF
##3838B71.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0045B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3838b7;
/* rgb */ color: rgb(56, 56, 183);
/* oklch */ color: oklch(43.1% 0.194 274.6);
Tailwind
colors: {
  custom: {
    50: '#806fce',
    500: '#3838b7',
    950: '#000000',
  },
}
SCSS
$custom: #3838b7;
$custom-light: #806fce;
$custom-dark: #000000;
JSON
{
  "hex": "#3838b7",
  "rgb": {
    "r": 56,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 240,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43099,
    "c": 0.19369,
    "h": 274.6
  },
  "luminance": 0.07088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3838B7

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

Preview Lab → · Contrast checker → · Palette generator →

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