#3A38B2#3A38B2

#3A38B2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.8% C 0.187 H 275.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#3A38B2
RGBrgb(58, 56, 178)
HSLhsl(241, 52%, 46%)
HSVhsv(241, 69%, 70%)
CMYKcmyk(67.4%, 68.5%, 0%, 30.2%)
CIE-LABlab(31.67, 39.59, -64.38)
CIE-LCHlch(31.67, 75.58, 301.59°)
OKLaboklab(42.75% 0.0187 -0.1859)
OKLCHoklch(42.75% 0.187 275.8)
XYZxyz(11.1923, 6.9412, 42.8608)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38B2 #B0B238
analogous
#3873B2 #3A38B2 #7738B2
triadic
#3A38B2 #B23A38 #38B23A
tetradic
#3A38B2 #B23873 #B0B238 #38B277
square
#3A38B2 #B23873 #B0B238 #38B277
split-complementary
#3A38B2 #B27738 #73B238
monochromatic
#1C1B55 #2B2983 #3A38B2 #5D5CCC #8B8ADA

Accessibility & contrast

On white

8.79
#3A38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3A38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38B2
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38B2#FFFFFF#000000##FFFFFF
##3A38B21.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a38b2;
/* rgb */ color: rgb(58, 56, 178);
/* oklch */ color: oklch(42.8% 0.187 275.8);
Tailwind
colors: {
  custom: {
    50: '#806fca',
    500: '#3a38b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a38b2;
$custom-light: #806fca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38b2",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 240.984,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42753,
    "c": 0.18685,
    "h": 275.8
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#3A38B2
secondary
#C3C581
accent
#DC4CD9
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #3A38B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3A38B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva