#3A38C0#3A38C0

#3A38C0 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.1% C 0.204 H 274.7°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#3A38C0
RGBrgb(58, 56, 192)
HSLhsl(241, 55%, 49%)
HSVhsv(241, 71%, 75%)
CMYKcmyk(69.8%, 70.8%, 0%, 24.7%)
CIE-LABlab(32.99, 44.26, -70.50)
CIE-LCHlch(32.99, 83.24, 302.12°)
OKLaboklab(44.1% 0.0167 -0.2038)
OKLCHoklch(44.1% 0.204 274.7)
XYZxyz(12.6704, 7.5325, 50.6451)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38C0 #BEC038
analogous
#387AC0 #3A38C0 #7E38C0
triadic
#3A38C0 #C03A38 #38C03A
tetradic
#3A38C0 #C0387A #BEC038 #38C07E
square
#3A38C0 #C0387A #BEC038 #38C07E
split-complementary
#3A38C0 #C07E38 #7AC038
monochromatic
#1D1C61 #2C2A91 #3A38C0 #6564D2 #9493DF

Accessibility & contrast

On white

8.38
#3A38C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3A38C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38C0
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38C0#FFFFFF#000000##FFFFFF
##3A38C01.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C4
Deuteranopia (green-blind)
#0047BE
Tritanopia (blue-blind)
#005E78
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3a38c0;
/* rgb */ color: rgb(58, 56, 192);
/* oklch */ color: oklch(44.1% 0.204 274.7);
Tailwind
colors: {
  custom: {
    50: '#8370d4',
    500: '#3a38c0',
    950: '#000000',
  },
}
SCSS
$custom: #3a38c0;
$custom-light: #8370d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38c0",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 240.882,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.441,
    "c": 0.20447,
    "h": 274.7
  },
  "luminance": 0.07534
}

Semantic roles & 50–950 ramp

primary
#3A38C0
secondary
#CACB89
accent
#DE4ADC
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3A38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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