#3A38B6#3A38B6

#3A38B6 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 43.1% C 0.192 H 275.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#3A38B6
RGBrgb(58, 56, 182)
HSLhsl(241, 53%, 47%)
HSVhsv(241, 69%, 71%)
CMYKcmyk(68.1%, 69.2%, 0%, 28.6%)
CIE-LABlab(32.04, 40.93, -66.15)
CIE-LCHlch(32.04, 77.79, 301.75°)
OKLaboklab(43.13% 0.0182 -0.1911)
OKLCHoklch(43.13% 0.192 275.4)
XYZxyz(11.5998, 7.1042, 45.0068)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38B6 #B4B638
analogous
#3875B6 #3A38B6 #7938B6
triadic
#3A38B6 #B63A38 #38B63A
tetradic
#3A38B6 #B63875 #B4B638 #38B679
square
#3A38B6 #B63875 #B4B638 #38B679
split-complementary
#3A38B6 #B67938 #75B638
monochromatic
#1C1B58 #2B2A87 #3A38B6 #605ECD #8E8DDC

Accessibility & contrast

On white

8.67
#3A38B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#3A38B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38B6
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38B6#FFFFFF#000000##FFFFFF
##3A38B61.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3a38b6;
/* rgb */ color: rgb(58, 56, 182);
/* oklch */ color: oklch(43.1% 0.192 275.4);
Tailwind
colors: {
  custom: {
    50: '#816fcd',
    500: '#3a38b6',
    950: '#000000',
  },
}
SCSS
$custom: #3a38b6;
$custom-light: #816fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38b6",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 240.952,
    "s": 52.941,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43133,
    "c": 0.19194,
    "h": 275.4
  },
  "luminance": 0.07105
}

Semantic roles & 50–950 ramp

primary
#3A38B6
secondary
#C5C684
accent
#DC4BDA
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3A38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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