#3A38CD#3A38CD

#3A38CD is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.4% C 0.220 H 273.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#3A38CD
RGBrgb(58, 56, 205)
HSLhsl(241, 60%, 51%)
HSVhsv(241, 73%, 80%)
CMYKcmyk(71.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(34.26, 48.51, -76.00)
CIE-LCHlch(34.26, 90.16, 302.55°)
OKLaboklab(45.39% 0.0146 -0.2198)
OKLCHoklch(45.39% 0.22 273.8)
XYZxyz(14.1749, 8.1343, 58.5688)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38CD #CBCD38
analogous
#3880CD #3A38CD #8438CD
triadic
#3A38CD #CD3A38 #38CD3A
tetradic
#3A38CD #CD3880 #CBCD38 #38CD84
square
#3A38CD #CD3880 #CBCD38 #38CD84
split-complementary
#3A38CD #CD8438 #80CD38
monochromatic
#1D1C6F #2A28A0 #3A38CD #6A69D9 #9B9AE6

Accessibility & contrast

On white

7.99
#3A38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3A38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38CD
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38CD#FFFFFF#000000##FFFFFF
##3A38CD1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D1
Deuteranopia (green-blind)
#0049CA
Tritanopia (blue-blind)
#00637F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3a38cd;
/* rgb */ color: rgb(58, 56, 205);
/* oklch */ color: oklch(45.4% 0.220 273.8);
Tailwind
colors: {
  custom: {
    50: '#8670de',
    500: '#3a38cd',
    950: '#000000',
  },
}
SCSS
$custom: #3a38cd;
$custom-light: #8670de;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38cd",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 240.805,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.4539,
    "c": 0.2203,
    "h": 273.8
  },
  "luminance": 0.08136
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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