#3A38FF#3A38FF

#3A38FF is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.6% C 0.277 H 271.1°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#3A38FF
RGBrgb(58, 56, 255)
HSLhsl(241, 100%, 61%)
HSVhsv(241, 78%, 100%)
CMYKcmyk(77.3%, 78%, 0%, 0%)
CIE-LABlab(39.49, 64.07, -95.83)
CIE-LCHlch(39.49, 115.27, 303.76°)
OKLaboklab(50.61% 0.0052 -0.2774)
OKLCHoklch(50.61% 0.277 271.1)
XYZxyz(21.2030, 10.9455, 95.5836)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38FF #FDFF38
analogous
#3899FF #3A38FF #9D38FF
triadic
#3A38FF #FF3A38 #38FF3A
tetradic
#3A38FF #FF3899 #FDFF38 #38FF9D
square
#3A38FF #FF3899 #FDFF38 #38FF9D
split-complementary
#3A38FF #FF9D38 #99FF38
monochromatic
#0200BD #0300FA #3A38FF #7775FF #B3B2FF

Accessibility & contrast

On white

6.58
#3A38FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#3A38FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A38FF
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38FF#FFFFFF#000000##FFFFFF
##3A38FF1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067FF
Deuteranopia (green-blind)
#0053FC
Tritanopia (blue-blind)
#00769C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3a38ff;
/* rgb */ color: rgb(58, 56, 255);
/* oklch */ color: oklch(50.6% 0.277 271.1);
Tailwind
colors: {
  custom: {
    50: '#9173ff',
    500: '#3a38ff',
    950: '#000000',
  },
}
SCSS
$custom: #3a38ff;
$custom-light: #9173ff;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38ff",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 255
  },
  "hsl": {
    "h": 240.603,
    "s": 100,
    "l": 60.98
  },
  "oklch": {
    "l": 0.50611,
    "c": 0.27749,
    "h": 271.1
  },
  "luminance": 0.10948
}

Semantic roles & 50–950 ramp

primary
#3A38FF
secondary
#EEEFA4
accent
#E600E3
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#0F0818
muted
#7F7B86

Preview Lab

Preview with #3A38FF

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

Preview Lab → · Contrast checker → · Palette generator →

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