#3A38CC#3A38CC

#3A38CC is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.3% C 0.219 H 273.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#3A38CC
RGBrgb(58, 56, 204)
HSLhsl(241, 59%, 51%)
HSVhsv(241, 73%, 80%)
CMYKcmyk(71.6%, 72.5%, 0%, 20%)
CIE-LABlab(34.16, 48.19, -75.58)
CIE-LCHlch(34.16, 89.63, 302.52°)
OKLaboklab(45.29% 0.0148 -0.2186)
OKLCHoklch(45.29% 0.219 273.9)
XYZxyz(14.0545, 8.0861, 57.9351)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38CC #CACC38
analogous
#3880CC #3A38CC #8438CC
triadic
#3A38CC #CC3A38 #38CC3A
tetradic
#3A38CC #CC3880 #CACC38 #38CC84
square
#3A38CC #CC3880 #CACC38 #38CC84
split-complementary
#3A38CC #CC8438 #80CC38
monochromatic
#1D1C6E #2A299E #3A38CC #6A69D8 #9A99E5

Accessibility & contrast

On white

8.02
#3A38CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3A38CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38CC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38CC#FFFFFF#000000##FFFFFF
##3A38CC1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D0
Deuteranopia (green-blind)
#0049C9
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3a38cc;
/* rgb */ color: rgb(58, 56, 204);
/* oklch */ color: oklch(45.3% 0.219 273.9);
Tailwind
colors: {
  custom: {
    50: '#8570dd',
    500: '#3a38cc',
    950: '#000000',
  },
}
SCSS
$custom: #3a38cc;
$custom-light: #8570dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38cc",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 240.811,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.45289,
    "c": 0.2191,
    "h": 273.9
  },
  "luminance": 0.08088
}

Semantic roles & 50–950 ramp

primary
#3A38CC
secondary
#D0D18F
accent
#E245E0
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #3A38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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