#3A38AF#3A38AF

#3A38AF is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.183 H 276.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#3A38AF
RGBrgb(58, 56, 175)
HSLhsl(241, 52%, 45%)
HSVhsv(241, 68%, 69%)
CMYKcmyk(66.9%, 68%, 0%, 31.4%)
CIE-LABlab(31.40, 38.58, -63.04)
CIE-LCHlch(31.40, 73.91, 301.46°)
OKLaboklab(42.47% 0.0191 -0.182)
OKLCHoklch(42.47% 0.183 276)
XYZxyz(10.8944, 6.8221, 41.2918)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A38AF #ADAF38
analogous
#3872AF #3A38AF #7538AF
triadic
#3A38AF #AF3A38 #38AF3A
tetradic
#3A38AF #AF3872 #ADAF38 #38AF75
square
#3A38AF #AF3872 #ADAF38 #38AF75
split-complementary
#3A38AF #AF7538 #72AF38
monochromatic
#1B1A52 #2B2981 #3A38AF #5C5ACA #8A88D9

Accessibility & contrast

On white

8.88
#3A38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3A38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A38AF
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A38AF#FFFFFF#000000##FFFFFF
##3A38AF1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3a38af;
/* rgb */ color: rgb(58, 56, 175);
/* oklch */ color: oklch(42.5% 0.183 276.0);
Tailwind
colors: {
  custom: {
    50: '#7f6fc8',
    500: '#3a38af',
    950: '#000000',
  },
}
SCSS
$custom: #3a38af;
$custom-light: #7f6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a38af",
  "rgb": {
    "r": 58,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 241.008,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42471,
    "c": 0.18299,
    "h": 276
  },
  "luminance": 0.06823
}

Semantic roles & 50–950 ramp

primary
#3A38AF
secondary
#C2C380
accent
#DB4DD9
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3A38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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